Home/Support/Support Forum/Web Server and File Upload Help Needed!
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

Web Server and File Upload Help Needed!

0 votes
I have a web server application with an html page that has a "TYPE=FILE" field that is used to upload a file to my device. I am looking for the code where the method RpHSCreateFile is called when the page is submitted and the ROM is processing the call.
I am looking for some help as I am not the original designer of the application and have inherited the code from someone that is not able to help at this time. I am not very proficient with DigiESP yet and need to get this project completed as soon as possible. Any help will be greatly appreciated.

Thank you in advance.
asked Jul 15, 2010 in NET+OS by edsudit New to the Community (9 points)
recategorized Dec 5, 2013 by tuxembb

Please log in or register to answer this question.

2 Answers

0 votes
Hello

Look for the file file.c. It is either in the project directory or in src\rphttpd. file.c is the file system interface for the advanced web server.
answered Jul 15, 2010 by dakotas_dad Veteran of the Digi Community (694 points)
0 votes
Thanks for the quick reply. I looked at this file, but the only method I can find is the RpHSCreateFile function, which is called with the filename pointer to the name and location. In my application, this filename comes from a field on a web page that is declared as "TYPE=FILE". There is also a "formreply.c" file that looks like stores all the fields from the page in a structure. I am trying to find the code where this structure is then used to retrieve the values of the fields on the htm page.
Hopefully this makes sense.

Thanks a lot,
Ed
answered Jul 15, 2010 by edsudit New to the Community (9 points)
...