Wednesday, November 28, 2007

Drag and Drop File Uploading Made Easy

This blog has moved to http://www.zackgrossbart.com/hackito.

7 comments:

panyasan said...

Thank you Zack for this code. I have made heavy use of it here

Christian

Manju said...

Thanks for the effort ,nice code

Venkat Kodali said...

Hi,
Thanks for your code it helps me a lot, is it possible to drag the email items from outlook and drop it on applet so that it can save the email item on server. Is this requirement doable using java.
Appreciate your effort

Thanks
Venkat

Zack Grossbart said...

Hello Venkat,

I'm not sure what mimetype Outlook uses for mail message. You should add a few System.out.println calls to the applet and give it a try. If the mimetype is reasonable then it will work here.

-Zack

Anonymous said...

Looking for example web sites uising this code, please send URL thanks

Anders said...

Hi,

I'm trying to implement panyasan's version of this code in my web project. I've got it set up and ready, but when I try to upload files I keep getting "cannot retry due to server authentication, in streaming mode". I am confused about what authentication the error message is referring to. My programming skills is limited to some javascript and php, I've never done anything in java before. Do you have any suggestions?

Kind regards,
Anders

Zack Grossbart said...

Hello Anders,

It is tough to diagnose without a lot more details, but it sounds like your server is requiring authentication to upload the files. You could put some prints into your PHP code and see if it is even being called. My suspicion is that it isn't.

If my suspicion is correct you should look at your server settings. Either you need to change your settings to allow the uploads anonymously, or you need to add authentication to the Java applet. Good luck.

-Zack