0

I need to implement ajax upload functionality similar to the one in this page . But I do not want to make a 1000 line code out of it. If anyone knows a simple ajax upload method without using third party tools that would be great.

1
  • 1
    The HTML 5 File API (supported by some browsers) is very promising, too: dev.w3.org/2006/webapi/FileAPI Commented Jan 14, 2011 at 12:35

1 Answer 1

1

There is not a "simple" ajax file upload method (without using 3rd party tools), because browsers will not allow javascript to upload files due to security considerations. That could allow malicious web sites to upload your private files.

There are (afaik) two predominant ways of doing it, one is using a flash plug-in, and the other is creating an iframe that handles the upload.

I have previously used this one: https://github.com/valums/ajax-upload which worked well

But there is a new version here that I have not yet tried: http://valums.com/ajax-upload/

/Pete

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.