-
Notifications
You must be signed in to change notification settings - Fork 23
[Web service] temporary file storage
HouzuoGuo edited this page Feb 26, 2021
·
3 revisions
Hosted by laitos web server, the service enables users to upload files (up to 64MB each) for unlimited retrieval within 24 hours.
Uploaded files are temporary in nature, they are automatically deleted after 24 hours.
Under JSON key HTTPHandlers
, write a string property called FileUploadEndpoint
, value being the URL location of the service.
The location should be kept a secret for intended users only - make it difficult to guess.
Here is an example setup:
{ ... "HTTPHandlers": { ... "FileUploadEndpoint": "/very-secret-file-upload-place", ... }, ... }
The form is hosted by web server, therefore remember to run web server.
- In a web browser, navigate to
FileUploadEndpoint
of laitos web server. - Click "Choose file", after selecting a file click "Upload".
- Observe successful message: "Uploaded successfully. Your file is available for 24 hours under name: abcdefghij.ext". Write down the file name on a piece of paper.
- Visit
FileUploadEndpoint
within 24 hours, enter the file name into the text field and click "Download".
- Make the endpoint difficult to guess, this helps to prevent misuse of the service.
- The download button asks browser to use its default action on the downloaded file - if the file is a photo, then browsers will often display the photo rather than displaying a download dialogue. You can save the photo by right-clicking the photo on a desktop computer, or long-press the photo on a tablet computer.
- The temporary storage place is located underneath directory
laitos-HandleFileUpload
in operationg system's temporary file directory. On many Linux systems, each system service gets their own private temporary files directory underneath/tmp/
.
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps