NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: jking on May 23, 2024, 04:12:36 PM

Title: File Upload button on MemForm
Post by: jking 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
Title: Re: File Upload button on MemForm
Post by: Bruce on May 27, 2024, 08:57:09 PM
Very possible Jeff - make an example and post here.
Title: Re: File Upload button on MemForm
Post by: jking 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