NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Rene Simons on May 23, 2016, 05:02:35 AM

Title: File upload
Post by: Rene Simons on May 23, 2016, 05:02:35 AM
Hi,

When I do a file upload, is there a way to get the FROM location of the uploaded file?

Cheers,
Rene
Title: Re: File upload
Post by: peterH on May 23, 2016, 11:49:20 AM
Right after the user has selected the file - and before NT starts fiddling with the name -  your file upload field will contain that value, I think.

So, in your SaveFile::loc:filename  Routine - immediately after the code statement - you should be able to get at it.

Peter
Title: Re: File upload
Post by: Rene Simons on May 24, 2016, 12:50:41 AM
Thanks Peter,
I will look into that and let you know the result.
Cheers,
Rene
Title: Re: File upload
Post by: Bruce on May 24, 2016, 07:22:25 AM
>> When I do a file upload, is there a way to get the FROM location of the uploaded file?

no, it's specifically not sent. It's a security thing and it's not even available at the JavaScript level in the browser.

cheers
Bruce
Title: Re: File upload
Post by: Rene Simons on May 24, 2016, 11:48:26 AM
Ok, pitty for me.
Thanks
Title: Re: File upload
Post by: peterH on May 24, 2016, 01:44:05 PM
Hi Rene,

My bad. I was testing it on my laptop and picked the file from somewhere in the web folder. So folder names were almost alike Sorry about giving you false hope.

Peter
Title: Re: File upload
Post by: Rene Simons on May 25, 2016, 02:51:27 AM
Peter,
Well at least Bruce came to the rescue  ;)
Thanks for the efoort.
Rene