Uploading previously defined file

Firefox saves pictures from clipboard into something similar as ".../AppData/Local/Temp/moz-screenshot-65.jpg".

Where can I set that swfupload will upload exactly this file?
So.. I want to make SWUpload to upload file, whose path I generate in javascript.

gyphie's picture

Security

This is not allowed. The user must select the file from the File Dialog. It would be extremely insecure to allow a web page to upload any file it wished from a computer

Requeue

So is there a way to requeue a file? My server is configured to return JSON in the case of an error that the client knows how to handle. Therefore, the server always returns a 200 and I can't take advantage of the auto requeue functionality.

I've tried this but it does not seem to work.

file.filestatus = SWFUpload.FILE_STATUS.QUEUED;
swfu.queueEvent('file_queued_handler', file);

Thanks,
Randy

gyphie's picture

Feature not available

SWFUpload currently does not support that kind of re-queueing. I've added a feature request to SWFUpload's googlecode site. We'll make this feature will be available in a future version of SWFUpload.