19.0.0 released Nov 08, 2023
Purpose: Upload a file to server.
Files uploaded via client (such as a browser, curl etc.) are input-parameters.
Vely uploads files for you automatically, meaning you do not have to write any code for that specific purpose. An uploaded file will be stored in file-storage, with path and name of such a file generated by Vely to be unique. For example, a file uploaded might be named "/home/user/file/d0/f31881". When file is uploaded, the following input parameters can be obtained, assuming "name" attribute of "input" element is "myfile":
For example, for an HTML form which is uploading a file named "myfile", such as
- "myfile_filename" is the name of the file as provided by the client.
- "myfile_location" is the full path on the server where file is stored (such as "/home/user/file/d0/f31881" for example)
- "myfile_ext" is the extension of the file, for example ".jpg" or ".pdf". Note that ".jpeg" is always showing as ".jpg". The extension is always lower case.
- "myfile_size" is the size of the file uploaded. See vv for setting the maximum file upload size.
<input type='file' name='myfile'>
your code that handles this might be:
You have uploaded file <<p-web myfile_filename>> to a server file at <<p-web myfile_location>>
You are free to copy, redistribute and adapt this web page (even commercially), as long as you give credit and provide a dofollow link back to this page - see full license at CC-BY-4.0
. Copyright (c) 2019-2023 Dasoftver LLC. Vely and elephant logo are trademarks of Dasoftver LLC. The software and information on this web site are provided "AS IS" and without any warranties or guarantees of any kind. Icons from table-icons.io
copyright Paweł Kuna, licensed under MIT