1
HFS ~ HTTP File Server / How to allow POST file upload to non-existing path?
« on: April 02, 2019, 04:36:54 PM »
Hi Everyone,
Sorry for my noob question. I have Data Logger that uploads CSV files to a predefined, unchangeable URL.
When I try to send the files to HFS, the log says that the server has disconnected. Using Wireshark I saw that HFS returns a 404 Not Found error.
Of course I set up an upload folder with the required permissions, and I manage to upload through the browser, and also with the Postman test. I guess, but I'm not sure, the problem here is that the device can't upload files by POST with a URL to a path that does not exist in advance, that looks something like:
http:\\IP\DEVICE_UUID\signal_log\DATE\DATE_AND_TIME.CSV
(I turned here the slash so I could write the URL)
How do I enable the upload of files?
Is it necessary to write a script that will accept the call and generate the path? If so please please refer me to such example? Or in another way?
Thank you all.
Sorry for my noob question. I have Data Logger that uploads CSV files to a predefined, unchangeable URL.
When I try to send the files to HFS, the log says that the server has disconnected. Using Wireshark I saw that HFS returns a 404 Not Found error.
Of course I set up an upload folder with the required permissions, and I manage to upload through the browser, and also with the Postman test. I guess, but I'm not sure, the problem here is that the device can't upload files by POST with a URL to a path that does not exist in advance, that looks something like:
http:\\IP\DEVICE_UUID\signal_log\DATE\DATE_AND_TIME.CSV
(I turned here the slash so I could write the URL)
How do I enable the upload of files?
Is it necessary to write a script that will accept the call and generate the path? If so please please refer me to such example? Or in another way?
Thank you all.