I want to let users upload any type of file and store in a field type of document, I don’t need to set an image with an src but just to make it easy for the user to choose any kind of file and upload it to my database.
Any way to accomplish this?
This is how my upload mechanism works but I don’t really like it
- User choose type of file
- Selects image/document
- Save
I just think is too confusing.
Other question I have,
- Is there any way to delete a file once uploaded?