Upload data file to webserver |
Post Reply ![]() |
Author | |
william3 ![]() Newbie ![]() ![]() Joined: Dec 08 2015 Location: Germany Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() Posted: Jan 26 2018 at 7:19pm |
I try to copy a data file from a client computer to my webserver computer using the OE "Upload File(s)" template. When trying to use the name of the data source file in my php script I get the "unknown index" error.
Checking out shows that no filename is POSTed to my php script. When I set the type of input to "text" instead of "file" the string is POSTed to my php script. Have I forgotten something? Willy |
|
![]() |
|
Dmit OE ![]() Admin Group ![]() Joined: May 31 2012 Status: Offline Points: 5283 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It's not how file uploading works, check PHP documentation and/or tutorials on the Web concerning $_FILES |
|
![]() |
|
william3 ![]() Newbie ![]() ![]() Joined: Dec 08 2015 Location: Germany Status: Offline Points: 22 |
![]() ![]() ![]() ![]() ![]() |
Hello Dmit, that was the necessary hint, it works perfect
![]() I don't know what brought me to using $_POST instead of $_FILES ![]() Willy
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |