NetTalk Central

Author Topic: File Upload button on MemForm  (Read 3310 times)

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
File Upload button on MemForm
« on: May 23, 2024, 04:12:36 PM »
Hi Bruce,

     I'm trying to use a MemForm, with a single FileUpload button on it, to upload files to the web\uploads folder.  The web log does show the POST /dataupload event but the actual file is not in the uploads folder.  I have tried this running a local exe and also from a server using a dll with the multi-site host.

     I have run the example app, which uses a normal NetWebForm, and the file does get uploaded properly.  Is it possible it won't work with a MemForm?

Thanks,

Jeff King

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11263
    • View Profile
Re: File Upload button on MemForm
« Reply #1 on: May 27, 2024, 08:57:09 PM »
Very possible Jeff - make an example and post here.

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: File Upload button on MemForm
« Reply #2 on: May 28, 2024, 12:05:43 PM »
Hi Bruce,

     In preparing the example app web26, I found a solution.  I simply created a local variable (string) and used this in the Field name on the field tab of the File Upload button.  It now uploads the selected file to the uploads folder.

Thanks,

Jeff