NetTalk Central

Author Topic: Upload File Name  (Read 2883 times)

kevin plummer

  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
    • Production Accounting and Software Payroll
Upload File Name
« on: October 19, 2011, 11:23:00 PM »
How does Nettalk handle os invalid file names like 42" Monitor Quote[1].rtf
ie what would be the filename on disk?

Cheers,

Kev

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11251
    • View Profile
Re: Upload File Name
« Reply #1 on: October 20, 2011, 07:26:52 AM »
Hi Kev,

I don't think there's any explicit code to "clean" a file name. If you wanted to add it, I'd put it into the .RenameFile method in WebHandler.

Of course the filename should nominally be valid under at least one os, because it is after all a "File Upload" field (so the name is the name as stored on some other file system.)

Cheers
Bruce