On Friday, October 28, 2011 12:07:08 PM UTC-4, Anthony wrote:
>
> On Friday, October 28, 2011 10:57:05 AM UTC-4, Ross Peoples wrote:
>>
>> I'm starting to think this is a bug since SQLFORM calls store() like this:
>>
>> store(f.file, f.filename)
>>
>> I could do the same thing in my code, but the documentation I've seen so 
>> far only requires you to pass one parameter to store().
>>
>
> I think this is the only place in the book that mentions store(), and it 
> passes the file (stream) and filename: 
> http://web2py.com/book/default/chapter/06#Manual-Uploads.
>

Note, the filename is optional, but should be provided because store() uses 
it to get the correct extension for the file (and encodes the original 
filename into the new name for later decoding when retrieved).

Anthony 

Reply via email to