OK, defining the field as below did the trick:
Field('application', 'upload', uploadfolder=os.path.join(request.folder,
'uploads/applications'), autodelete=True)
(and no blobs were involved)
Thanks.
On Tuesday, July 16, 2013 1:14:08 AM UTC+2, Niphlod wrote:
>
> no 'blob' fields involved ?
> first thing is NEVER use string concatenation to figure out a path. use
> os.path.join() .
> second thing is, use request.folder as the root folder for everything, or
> you loose the ability to have your application contained in a single
> folder. request.application is just the application name.
> third thing is that if it's available on appadmin and no 'blob' field is
> involved, it MUST be somewhere in your pc.
>
> On Monday, July 15, 2013 6:51:28 PM UTC+2, lesssugar wrote:
>>
>> I have the following upload field definition:
>>
>> ...
>> Field('application', 'upload', uploadfolder=request.application +
>> '/uploads/applications', autodelete=True)
>> ...
>>
>> db.mytable.application.requires = IS_UPLOAD_FILENAME(extension=
>> '(doc|DOC|docx|DOCX|pdf|PDF|odt|ODT|rtf|RTF)', error_message='Use PDF,
>> DOC, DOCX, ODT or RTF')
>>
>> The upload is being performed with no errors and the file is available
>> for download via Appadmin. However, the file itself is not stored in the
>> specified upload folder, which remains empty. Neither is the file stored in
>> app/uploads.
>>
>> What am I doing wrong and where is my uploaded file being saved?
>>
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.