[PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Ajay Garg
Hi all. I have a requirement, wherein I need to allow vanilla uploads of files to a HTTPD server. Any client can upload any number of files (one at a time). Also, there is just one directory, where the files get stored finally (that is, after being copied from the temporary location, via

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Matijn Woudt
On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a requirement, wherein I need to allow vanilla uploads of files to a HTTPD server. Any client can upload any number of files (one at a time). Also, there is just one directory, where the files get

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Ajay Garg
Thanks Jim and Matijn for the quick replies. I will try to have a workaround. On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a requirement, wherein I need to allow vanilla

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 2:15 PM, Ajay Garg wrote: Thanks Jim and Matijn for the quick replies. I will try to have a workaround. On Wed, Jul 10, 2013 at 11:09 PM, Matijn Woudt tijn...@gmail.com wrote: On Wed, Jul 10, 2013 at 7:21 PM, Ajay Garg ajaygargn...@gmail.com wrote: Hi all. I have a

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Ajay Garg
Thanks Jim and Anthony. Jim, You are right, your solution is doable. But one thing I am a little skeptical about, is what would be the percentage of the people willing to suggest a new name immediately, versus the percentage of people who would like to cancel the current upload, and come back

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Jim Giner
On 7/10/2013 3:37 PM, Ajay Garg wrote: Thanks Jim and Anthony. Jim, You are right, your solution is doable. But one thing I am a little skeptical about, is what would be the percentage of the people willing to suggest a new name immediately, versus the percentage of people who would like to

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Anthony Wlodarski
Is there anything that would prevent you from somehow uniquely knowing who the user is uploading the file. For example you mentioned client'. If you know who the client is you can append that to the filename or prepend it, for the destination string (second parameter to the function call). That

Re: [PHP] Query regarding temporarily-uploaded files

2013-07-10 Thread Bastien
Bastien Koert On 2013-07-10, at 3:29 PM, Anthony Wlodarski ant92...@gmail.com wrote: Is there anything that would prevent you from somehow uniquely knowing who the user is uploading the file. For example you mentioned client'. If you know who the client is you can append that to the