In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Dependency Graph View Issue ] Relation Graph ] Horizontal ]
related to child of duplicate of

Viewing Issue Simple Details
ID Category Type Reproducibility Date Submitted Last Update
0000703 [In-Portal CMS] Admin Interfaces feature request always 2010-04-17 19:26 2010-07-22 15:03
Reporter Dmitry View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed      
Summary 0000703: Improve Flash Uploader to generate random names during initial upload to filesystem
Description 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.
Additional Information



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker