Link to home
Start Free TrialLog in
Avatar of proteam4
proteam4

asked on

AJAX File Upload?

I want to upload an image file through AJAX and sending to to new server side script, which actually resizing the image ans shwing resized image. Through normal file upload I can be able to do that but I want to do that with AJAX , so that I can show the resize image on a flow, without sending user to new url or script path.

Please tell me, if anyone knows the script which can help me to upload image files through AJAX, I knw in normal AJAX file upload cannot be possible, it will be using an iframe I think. I am thankful in advance if someone has the solution for this issue.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hmm looking at the code there, it uses pretty heavy activeX which has to be accepted by the user
Avatar of proteam4
proteam4

ASKER

Thanks for reply, but I want activeX free script for my PHP, I am using php as a server side scripting. can you help in with php?
I would think you need the file form element.
Then you can auto post it to a normal php file upload

http://www.webtoolkit.info/ajax-file-upload.html
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I need PHP + AJAX
Go through following link in this they use PHP and AJAX to upload an image.

http://www.air4web.com/files/upload/
Second link in the google I posted.
thanks for these links, can you tell me, how do I pas varibles in src of an iframe. I want to pass like script.php?var1=value   but this is not happening..
Not enough info.

If you use
script.php?var1=value
then in script.php you have
$var1 = $_GET["var1"];
I would say split me {http:#19977112} and Zvonko {http:#19976913}
mplungjan,

Thanks for the comment and recommendation.  I'll change mine.  As I looked at this again (after some sleep :] ) it seems the Asker said he was helped by those links.

    Changed recommendation:  Split - mplungjan {http:#19977112} and Zvonko {http:#19976913}

Let me know if there are any objections.

b0lsc0tt
EE Cleanup Volunteer
Forced accept.

Computer101
EE Admin