Simple file upload
This is a very simple plugin that allows you to upload files from a user page to the server. It is inserted via a shortcode
, where you can specify where, how many and what extension files can be uploaded.
By default, the upload form is only visible to administrators, but you can also enable it for registered users. (Not allowed for guests.)
When the plugin is uploaded, the server renames the file in a friendly way, and if a file with that name already exists, it adds a counter to the file name. (árvíztűrő tükörfúrógép.doc
=> arvizturo-tukorfurogep-1.doc
)
The description provided at upload is stored in the descript.ion
file. (If necessary, create the file.)
Include in content:
[very-simple-file-upload target="REQUIRED!" ‹user="1"› ‹accept=""› ‹max-size=""›]
Set | Description |
---|---|
target="" |
Relative path to WordPress main folder. Uploading is limited to the main folder in WordPress and system folders are also disabled there. |
user="1" |
Also allows uploads for registered users. By default, only logged-in administrators can upload. |
accept="" |
Comma-separated list of accepted file types Default: jpg,png,doc,docx,xls,xlsx,pdf |
max-size="" |
The size of the file that can be uploaded. (If 0, it is not limited – this is the default) The server settings override it. |
A working example is not applicable because only registered users can upload.
The plugin creates a log file for uploads – called upload.log
– in the upload folder, where you can keep track of which file was uploaded by which user.
arvizturo-tukorfurogep-1.doc Developer|2020.07.06|09:58
Support Facebook group.