Something s wrong in building the upload paths. You get

C:\\...\\web2py\\applications\\Library/databases\\..\\uploads\\...

notice \\ everywhere (correct) but / between Library and databases and
\\..\\ should not be there.

This is a bug somewhere. a Missing os.path.join probably. Will work on
it later today and let you know.

massimo



On Jun 23, 3:15 am, Swell <swel...@googlemail.com> wrote:
> Ok
> I will post some code here to show as much as possible
>
> here is the db definition:
>
> db.define_table('papers',
>   Field('title','string'),
>   Field('author','string'),
>   Field('file','upload'),
>   )
>
> then if i try to use the database administration tool available in
> Models section and try to insert a file like
> "The Pricing of Options and Corporate Liabilities_Journal of Political
> Economy.pdf" i then get a ticket complaining about
>
> IOError: [Errno 2] No such file or directory:
> C:\\Users\\M\\Desktop\\web2py_src\\web2py\\applications\\Library/
> databases\\..\\uploads\
> \papers.file.a33b16f5af29f6d8.5468652050726963696e67206f66204f7074696f6e7320616e6420436f72706f72617465204c696162696c69746965735f4a6f75726e616c206f6620506f6c69746963616c2045636f6e6f6d792e706466.pdf'
>
> i also checked the file actually has never been properly uploaded ( it
> is not present in the upload directory). Nothing special about size of
> the file ( if i just  change manually the filename it works ). So it
> seems that the bug is when we receiving the file .
>
> hope we can sort this out
> Thx all
> M

Reply via email to