BullGuard Antivirus Sale - 60% Off with openElement !
Forum openElement Homepage
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: 08 Dec 2015
Location: Germany
Status: Offline
Points: 15
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: 26 Jan 2018 at 20:19
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
Avatar

Joined: 31 Mai 2012
Status: Offline
Points: 5271
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dmit OE Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 2018 at 10:05
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: 08 Dec 2015
Location: Germany
Status: Offline
Points: 15
Post Options Post Options   Thanks (1) Thanks(1)   Quote william3 Quote  Post ReplyReply Direct Link To This Post Posted: 27 Jan 2018 at 10:59
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 10.11
Copyright ©2001-2012 Web Wiz Ltd.

This page was generated in 0,031 seconds.