NetTalk Central

Author Topic: self.site.UploadsPath - Not Under Web Folder  (Read 3249 times)

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
self.site.UploadsPath - Not Under Web Folder
« on: October 16, 2010, 12:28:14 PM »
C7.2, NT 5PR32
I want to be able to upload files to another location other than under the web folder structure.  I understand that the web server would not be able to serve the files back out... and that is the intent.

I tried self.site.UploadsPath = 'c:\temp', but the files just get saved into the Uploads folder.  Any suggestions on how to do this?

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Re: self.site.UploadsPath - Not Under Web Folder
« Reply #1 on: October 17, 2010, 02:12:26 PM »
Sounds like you are on the right path. Check out example 26 as it could just be you are using the wrong embed.

Cheers,

Kev

David

  • Full Member
  • ***
  • Posts: 127
    • View Profile
Re: self.site.UploadsPath - Not Under Web Folder
« Reply #2 on: October 17, 2010, 06:25:20 PM »
Kevin,

2 for 2.... I had the wrong embed.  I was using the HandleFile before parent and it needs to be in RenameFile before parent.  Wonder why HandleFile didn't work.