In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
703 [In-Portal CMS] Admin Interfaces feature request always 2010-04-17 19:26 2010-07-22 15:03
Dmitry  
alex  
normal  
closed 5.0.3-B2  
fixed  
 
none 5.1.0-B2  
http://groups.google.com/group/in-portal-bugs/browse_thread/thread/4194a4716e58304e
Improvement to Flash Uploader for better filename support
0
0000703: Improve Flash Uploader to generate random names during initial upload to filesystem
Flash uploader uses temporary folder to store uploaded files until user hits
Save toolbar button. In that temporary folder files are named like this:
*uploader_flash_<control_number>_<file_number>_<original_file_name>*
This way, when 2 users select same file (same name) for upload on same edit
page, then they are merged together and only one user will be able to use
this file at the end.

I propose to generate temporary name for each uploaded file after file is
uploaded to server (in OnUploadFile event) using "tempnam" php function and
return it to js uploader part. Then, when user hits "Save", then js uploader
will submit original file name and it's temporary name (does that already)
so problem will be eliminated.

Also it may be a good idea to clean up "/system/tmp" folder after upload is
made, so we don't store files, that were uploaded 1 day ago and were never
used since then.
related to 0000456closed  (5.1.0)alex Major Flash Uploader Redesign 
patch uploader_duplicate_filename_in_temp_folder_fix.patch (5,093) 2010-05-30 13:09
http://tracker.in-portal.org/file_download.php?file_id=605&type=bug
Issue History
2010-07-22 15:03 alex Note Added: 0002513
2010-07-22 15:03 alex Status resolved => closed
2010-06-01 01:41 alex Note Added: 0002355
2010-06-01 01:41 alex Status reviewed and tested => resolved
2010-06-01 01:41 alex Fixed in Version => 5.1.0-B2
2010-06-01 01:41 alex Resolution open => fixed
2010-06-01 01:41 alex Changeset attached 5.1.x r13659
2010-05-31 22:27 Dmitry Note Added: 0002352
2010-05-31 22:27 Dmitry Target Version Icebox => 5.1.0
2010-05-30 15:37 Dmitry Note Added: 0002334
2010-05-30 15:37 Dmitry Assigned To !COMMUNITY => alex
2010-05-30 15:37 Dmitry Status needs testing => reviewed and tested
2010-05-30 13:09 alex Assigned To => !COMMUNITY
2010-05-30 13:09 alex Developer => alex
2010-05-30 13:09 alex Status active => needs testing
2010-05-30 13:09 alex File Added: uploader_duplicate_filename_in_temp_folder_fix.patch
2010-05-30 09:46 alex Relationship added related to 0000456
2010-04-17 19:29 Dmitry Change Log Message => Improvement to Flash Uploader for better filename support
2010-04-17 19:26 Dmitry New Issue
2010-04-17 19:26 Dmitry Reference => http://groups.google.com/group/in-portal-bugs/browse_thread/thread/4194a4716e58304e

Notes
(0002334)
Dmitry   
2010-05-30 15:37   
Tested good, and can be committed.

I had to apply some parts of the patch by hand.
(0002352)
Dmitry   
2010-05-31 22:27   
Let's move this to 5.1.0 along with other Flash Uploader tasks.
(0002355)
alex   
2010-06-01 01:41   
Fix committed to 5.1.x branch. Commit Message:

Fixes 0000703: Improve Flash Uploader to generate random names during initial upload to file system
(0002513)
alex   
2010-07-22 15:03   
Closing, since 5.1.0 release has been released.