BullGuard Antivirus Sale - 60% Off with openElement !
Forum Home Forum Home >

openElement

> User Tutorials
  New Posts New Posts RSS Feed - Upload data file to webserver
  FAQ FAQ  Forum Search   Register Register  Login Login

Upload data file to webserver

 Post Reply Post Reply
Author
Message
william3 View Drop Down
Newbie
Newbie
Avatar

Joined: Dec 08 2015
Location: Germany
Status: Offline
Points: 22
Post Options Post Options   Thanks (0) Thanks(0)   Quote william3 Quote  Post ReplyReply Direct Link To This Post Topic: Upload data file to webserver
    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 
Back to Top
Dmit OE View Drop Down
Admin Group
Admin Group


Joined: May 31 2012
Status: Offline
Points: 5283
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: Jan 27 2018 at 9:05am
Hi,

It's not how file uploading works, check PHP documentation and/or tutorials on the Web concerning $_FILES
Back to Top
william3 View Drop Down
Newbie
Newbie
Avatar

Joined: Dec 08 2015
Location: Germany
Status: Offline
Points: 22
Post Options Post Options   Thanks (1) Thanks(1)   Quote william3 Quote  Post ReplyReply Direct Link To This Post Posted: Jan 27 2018 at 9:59am
Hello Dmit, that was the necessary hint, it works perfect  Thumbs Up 
I don't know what brought me to using $_POST instead of $_FILES Confused

Willy
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.063 seconds.