NetTalk Central

Author Topic: File upload  (Read 5040 times)

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
File upload
« 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
Rene Simons
NT14.14

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: File upload
« Reply #1 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

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: File upload
« Reply #2 on: May 24, 2016, 12:50:41 AM »
Thanks Peter,
I will look into that and let you know the result.
Cheers,
Rene
Rene Simons
NT14.14

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: File upload
« Reply #3 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

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: File upload
« Reply #4 on: May 24, 2016, 11:48:26 AM »
Ok, pitty for me.
Thanks
Rene Simons
NT14.14

peterH

  • Sr. Member
  • ****
  • Posts: 413
    • View Profile
Re: File upload
« Reply #5 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

Rene Simons

  • Hero Member
  • *****
  • Posts: 650
    • View Profile
Re: File upload
« Reply #6 on: May 25, 2016, 02:51:27 AM »
Peter,
Well at least Bruce came to the rescue  ;)
Thanks for the efoort.
Rene
Rene Simons
NT14.14