There are some security issues.
Please sanitize your input because someone can download from Your database something different than archive, or simply drop Your database.
$fid = sanitize_text_field( $_GET['fid'] );
Related Posts:
- How to return number of found rows from SELECT query
- Inserting dynamic content into a page
- Change the filename format of saved featured images
- Check if post of title already exists
- How to export/import theme customizer settings?
- $wpdb->delete column values IN ARRAY()?
- Using file_exists to check file in Uploads
- WP API V2 returning Invalid User ID
- Rename image uploads replacing “width” and “height” in filename with “medium”, “large”, “small”
- Rename image uploads with width in filename
- Modify image while uploading
- Export User Info to CSV from Front End
- WordPress admin never finishes saving page on site with large page count
- Retrieving and Displaying Data From a Table
- error importing localhost export file to server
- How to sort results from a custom database table
- Upload images and attachments from frontend form
- Why WordPress uses 4 tables to manage terms
- Adding featured image via PHP
- How to enlarge the media file upload size in wordpress admin
- WPDB: how to get the value of a field in a custom database table
- Notice: wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder
- How to find the output of contact form 7 shortcode? [closed]
- Adding a querystring to an image URL when clicking ‘insert into post’?
- Access/update database with jQuery
- Use WordPress’s Media Uploader/ Manager in non WordPress php application
- wp_handle_upload – The uploaded file could not be moved to wp-content/uploads/2012/09
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Validate Uploaded Image using WordPress’ Built-in Functions?
- Add custom php database code above
- wp_insert_post not working
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- database interactions using OOP
- Accessing the database from a plugin outside of action hooks
- Storing Array from returned database query and using the array in a new query
- WordPress not reflecting changed of the database
- How to save checkbox values for logged in users?
- PDF file randomly breaks upon upload
- Image upload via FormData API and AJAX is not working ($_FILES always empty)
- Need help with Google drive API [closed]
- Update results, Before deleting the related category [closed]
- Can’t upload image using media_sideload_image
- Execute long and heavy processes
- database sent to a JSON file
- Attach previously uploaded image to post – current code has unexpected results
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- Databases – Submitting data from inputs to database [closed]
- db converts decimal number wrong
- Can I get an email notification when media is uploaded to the media library?
- Is it best to avoid using $wpdb for security issues?
- wpdb prepare insert table doesn’t work
- Should I use WordPress to skin a database website?
- How can I find the cause of a 500 server error?
- I can’t update my data through $wpdb
- Can’t successfully check if post with title exist in database
- Delete database record using plugin from admin panel
- How to get image from url from the database?
- Get uploaded image and attach it to the new post
- Wpdb get->results to out the the month from the db
- Filter results from a serialized string to use on statistics
- How to add data to a custom field at the wp_users table?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- Convert canvas to image and upload image to server
- How to get the filename from file system and create a download link?
- Custom upload folder
- custom plugin with upload files does not work
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Front end file upload returning wrong attachment url
- Convert all uploaded PNG files to PNG-8 format
- Database entry removed on browser refresh, Ajax PHP jQuery
- Change wordpress’ database data using ajax – how to get current user id?
- Error establishing a database connection (Set-up locally)
- add role on WordPress in PHP on a second database
- Limiting posts based on nested meta_query
- Preserving backslashes in post_content
- Error establishing a database connection (configuration)
- Retrieving and Displaying Data From a Table
- Using custom php to connect to database blocks wp from accessing galery pictures
- Can I disable auto increment of WordPress Posts Database to utilize previously deleted records?
- Updating the database after parsing CSV document
- How to display post_content from database in different on template page?
- Upload images from one server to an other in wordpress
- Issue in url update when using wordpress update query
- can’t delete a row from post_meta table
- File path for attachments outside of wp-content/uploads
- Is custom behaviour possible when asynchronously uploading?
- How to fetch results from database
- How to connect database table to each registered wordpress user.
- Create an unique ID number after submit form
- How do I empty a specific meta_value for all users in PHP
- Create custom table for wordpress custom registration flow
- WordPress directories not writable after PHP version upgrade
- Custom form that stores data in mysql database
- How to get data (not value or name) from radio options to POST to database
- Creating a table via dbDelta
- wpbd to connect to a VPS mysql database
- Retrieve data from external database and insert back in
- How to get the last date updated of postmeta?
- Putting form result in my database