I want to allow my users to upload files in admin panel, but I’m not sure where should I upload these files and how the script should look like?
<p>Please provide link to a file or click "Upload" to upload it from your PC:</p>
<form>
Link: <input type="text" name ="logo_url">
Upload: <input type="file" name="logo_file">
<input type="Submit" value="Upload">
How should back-end look for that script? I mean the type=”file” part 🙂
Oh and of course I have fully working theme option page (so the first input works like a charm).
See this very similar question. The answer can be adjusted to work with all types of files, not just images.
If you use the Contact Form 7 plugin your visitors can upload an attachment to a file that sends you an email with the file as an attachment.