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 =>
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=""›]
||Relative path to WordPress main folder.
Uploading is limited to the main folder in WordPress and system folders are also disabled there.
||Also allows uploads for registered users.
By default, only logged-in administrators can upload.
||Comma-separated list of accepted file types
||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.