Is it possible to upload a file using Ajax ? Reason

Answers were Sorted based on User's Feedback



Is it possible to upload a file using Ajax ? Reason..

Answer / nikhil

There is no way to upload file using ajax. 1 can use iframe
and upload files to give the feel of ajax file upload.
Many scripts and libraries are using this method, in their
ajax-file-upload plugins.

Is This Answer Correct ?    20 Yes 5 No

Is it possible to upload a file using Ajax ? Reason..

Answer / sushovan and joydip

At first u browse the file by
<input type="file" name="file1"> then u use a link ie:
<a href="#" onclick="upload()">upload</a>
then on the upload() function u use a framework named
prototype.js
u just import the file in javascript, use this file
u can send the file path to another page after complete ur
upload into that page this framework automatically return
into prev page with html response.
.... it may be possible by that way..

Is This Answer Correct ?    4 Yes 1 No

Is it possible to upload a file using Ajax ? Reason..

Answer / venugopal anthana

yes, Ajax would stop the postbacks. if you use the triggers
in the update panel then you can upload a file

Is This Answer Correct ?    2 Yes 1 No

Is it possible to upload a file using Ajax ? Reason..

Answer / anitha madarapu

there is no way to upload files using AJAX.

Is This Answer Correct ?    18 Yes 19 No

Is it possible to upload a file using Ajax ? Reason..

Answer / mt

Using the Jquery AjaxSubmit funtion, we can umpload the image.
Using this we dont need to pass the variables,
Add jquery.form.js in u r page
$JQ_Obj('#Form_name').ajaxSubmit(options);

Is This Answer Correct ?    0 Yes 2 No

Is it possible to upload a file using Ajax ? Reason..

Answer / binoyav

Anybody, Please explain the reason..

Is This Answer Correct ?    2 Yes 5 No

Is it possible to upload a file using Ajax ? Reason..

Answer / jay

reason why you cant (actually you can, if you specifically
set that option in Firefox) upload by just using AJAX is
that if it was possible, some malicious code could be
sending any files through ajax from your disk without your
knowledge, which would be a huge security issue.
isntead, you're using FORM posting for that.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More AJAX Interview Questions

How we can send data to server using ajax?

0 Answers  


What is JSON in Ajax?

1 Answers  


How can you find out that an AJAX request has been completed?

1 Answers  


Is ajax still in use?

0 Answers  


What javascript libraries and frameworks are available for ajax support?

0 Answers  






How do we abort the current xmlhttprequest in ajax?

0 Answers  


What are the requirements to run asp.net ajax applications on a server? : asp.net ajax

0 Answers  


Difference between server-side ajax framework and client-side ajax framework?

0 Answers  


Is Ajax said to be a technology platform or is it an architectural style?

1 Answers  


What is the purpose of xmlhttprequest?

0 Answers  


What is use of Update Panel control in Ajax toolkit?

0 Answers   Viscus Infotech,


What are all the security issues of Ajax?

1 Answers  


Categories