NetTalk Central

Author Topic: PR36 file upload problem  (Read 3280 times)

Alberto

  • Hero Member
  • *****
  • Posts: 1873
    • MSN Messenger - alberto-michelis@hotmail.com
    • View Profile
    • ARMi software solutions
    • Email
PR36 file upload problem
« on: April 30, 2009, 04:19:48 AM »
Hi,
When you use
self.site.UploadsPath = 'web\alternate'
in the Rename Method, the file uploads to the correct folder, but, the field which hold the filename gets blanked.

I test it even with the FileUpload example

It works OK in PR34

Thanks
Alberto


-----------
Regards
Alberto

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: PR36 file upload problem
« Reply #1 on: April 30, 2009, 05:19:42 AM »
Hi Alberto,

not really a bug, but a correction. (I've updated the example for PR37).
the line should read

 self.site.UploadsPath = clip(self.site.WebFolderPath) & '\alternate'

The "bug" was in hard-coding the "web" folder before.

Cheers
Bruce