Hello Alan, Thank you very much for your answer.
Finally, based on your note ( "... renames uploaded files (to prevent directory traversal attacks) ..."), in the difficulty of the changes, and taking into account that the rename is not very necessary in fact, I've decided not to change the name of the uploaded files. Now I upload and retrieve the images with the code Massimo gave me and the download() function you say. Thank you very much for the help! El lunes, 7 de enero de 2013 02:19:03 UTC+1, Alan Etkin escribió: > > This makes me think, is there any way so the stored file is accessed >> directly via URL, something like >> http://mysite.com/myapp/uploads/myfilename.jpg? > > > This should customize the uploaded files. > > - Retrieve the file db record > - Change the upload field to whatever name you need > - Rename the file with the Python os library > > The name change is a security measure: "... renames uploaded files (to > prevent directory traversal attacks) ..." > > Note that the download() function restores the original filename on client > downloads > --

