is it possible to pass data from an uploader (file input tag) to another one?

83 Views Asked by At

Is it possible to pass all data from an uploader (file input tag) to another one? in javascript or jquery.

What I want to do is to load a file in one uploader and pass it to another one

2

There are 2 best solutions below

2
On

Due to security issues you have no access to the values of those tags.

Using File API however you can read the selected file into memory and the do any number of things with it.

You can resize an image to the size of a thumbnail and put it in the source of a new by base64 encoding it.

2
On

No. It is not possible.

However, if you must. There are a few external components like flash's upload component of java applets that will give you the path.