Files uploaded in Flash Uploader are available live before item is saved

1 view
Skip to first unread message

Alexander Obuhovich

unread,
Jul 11, 2012, 3:30:08 PM7/11/12
to In-Portal Bugs
When "inp_edit_swfupload" block is used on form, then selected files are actually uploaded in two cases:
  1. when "upload" button is pressed (under uploader control)
  2. when "save" button is pressed (on top of form)

By default SWFUploader uploads files in temp directory ("/system/tmp") and when saving record to database ("save" button pressed) is moving uploaded files from temp directory to actual directory, specified in unit config.
But, when we have some invalid data on form, like required field value is not entered and "save" button is pressed, then we are returned to form with validation errors displayed, but are already uploaded to target directory.
Files, uploaded to temp directory should only be moved to target directory when "save" button is pressed and there are not validation errors on form.


New Info:

This also happens, when we do ajax-based form validation (that has flash uploader on it) using FormManager JS class.


Task http://tracker.in-portal.org/view.php?id=43 already was created at 2009-06-03 14:30, but I'm only creating discussion right now because some new data were discovered.

--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com
Reply all
Reply to author
Forward
0 new messages