Re: How can I rename uploaded files to a random filename?

2007-06-26 Thread Vincent Nijs
If you just want to upload some files you might do something like the following. The save function uses plain python to save the files to the FILE_UPLOAD_DIR you defined in your setting file. You can play around with the file names as much as you want here. Question: Why a random name? Vincent c

Re: How can I rename uploaded files to a random filename?

2007-06-26 Thread Russell Keith-Magee
On 6/25/07, rob <[EMAIL PROTECTED]> wrote: > > We upload all of our images via the Admin app and would like all > uploaded images to be renamed to a set of numbers. We can generate the > random numbers fine, but is there an easy way to rename the file once > it's uploaded in the Admin app? Not at

How can I rename uploaded files to a random filename?

2007-06-24 Thread rob
We upload all of our images via the Admin app and would like all uploaded images to be renamed to a set of numbers. We can generate the random numbers fine, but is there an easy way to rename the file once it's uploaded in the Admin app? Thanks. --~--~-~--~~~---~--~-