NetTalk Central

Author Topic: NTWS4.44 - uploading to 2 different folders  (Read 3873 times)

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
NTWS4.44 - uploading to 2 different folders
« on: January 28, 2010, 02:16:25 AM »
I have 2 forms which upload files. I want to upload the files from one form to \uploads and from the other to \uploads2 (e.g)
How would I handle this. I assume it would be a modification in the code in the webhandler's RenameFile Procedure but I'm not sure how to go about it.
Any ideas?
Thanks
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: NTWS4.44 - uploading to 2 different folders
« Reply #1 on: January 28, 2010, 03:02:17 AM »

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Re: NTWS4.44 - uploading to 2 different folders
« Reply #2 on: January 29, 2010, 07:02:22 AM »
Hallo Terry,

I have this code on WebHandler on RenameFile before the parent.


! Separate TPS and JPEG

case xExtractExt(clip(UPPER(p_filename)))  ! Extract the extension
 of 'TPS'
    self.site.UploadsPath = clip(self.site.WebFolderPath) & '\uploads\Statistica'  ! first folder
 of 'JPEG' orof 'JPG' orof 'BMP'
    self.site.UploadsPath = clip(self.site.WebFolderPath) & '\uploads\Photo'  ! second folder
end


It works perfect for more then 6 months ! I made the difference by extension, but you could do by any filter you want.....

Maybe it will help you,

Regards,
Robert

terryd

  • Hero Member
  • *****
  • Posts: 759
    • View Profile
    • Davcomm
    • Email
Re: NTWS4.44 - uploading to 2 different folders
« Reply #3 on: January 29, 2010, 07:20:43 AM »
Thanks
This looks exactly what I need.
Terry Davidson
Windows 10 64 bit/Windows7 64bit
Clarion 9.1.11529/Clarion10 12567
Nettalk 913
Nettalk 1015
StringTheory267/Winevent515/XFiles298/MessageBox239/Cryptonite186