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:
- code that I can run, or a plug in to show what sql tables something pulls information from
- Adding column to wpex_users
- Unable to insert two value in two different columns (WordPress database)
- Retrieving and Displaying Data From a Table
- Using wpdb to connect to a different database is not working
- why not selecting multiple rows of same standard_id using SQL query from database?
- Maximum file Upload
- 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?
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- Change upload URL by mime type
- Editing the term_order field
- Updating the database after parsing CSV document
- WordPress database error only while loading page for 1st time
- Multiple WordPress sites with different theme and plugin sharing the same content
- getting the values of hidden inputs to use them in a php mysql query
- How to grab data from input and store it into custom table in database?
- custom search query database in child theme
- wp-login.php?redirect_to=https problem
- Right path for renaming a file in uploads folder
- Insert data from form to database
- How do I fetch a data from an external database into my wordpress homepage
- How do I fetch a data from an external database into my wordpress homepage
- Full search and replace isn’t enough to make all pictures to be loaded with https
- How to display post_content from database in different on template page?
- Generate random access token to a post page
- How to query a staging database?
- I want url from a file in media using title file
- Get meta_query value by user meta array
- WordPress file upload
- Upload images from one server to an other in wordpress
- Crop an image after upload on custom account page
- media_handle_upload fails with gravity form submitted image
- Restrict File Type Uploads by User on Wordress via functions.php
- Front end/Database connection in WP
- I changed the password for the database user of my website, updated wp-config.php and wordpress asks to be reinstalled
- I want to use wordpress database in android app using json encode?
- Issue in url update when using wordpress update query
- wp_delete_attachment not working with multiple values
- direct query to post_meta table
- can’t delete a row from post_meta table
- Child theme functions.php file change database entries
- Renaming “Expand Details” within “Add Media”
- Accessing external database: ERR_INCOMPLETE_CHUNKED_ENCODING
- Can form entries from a WordPress form go to a database
- AJAX Not Working With WordPress Database properly
- special characters not supporting in wordpress
- How to set max users to 17.000
- Weird Behaviour: Not all WordPress Posts appearing
- Save the outputted image into the Media Library, with a different filename and extension
- 403 (Forbidden) delete file image in themer folder
- Can not manually create a database ( db, user, pass ) for a plugin
- File path for attachments outside of wp-content/uploads
- two wordpress sites, two themes, one database, same content
- Insert double entry in DB
- Is custom behaviour possible when asynchronously uploading?
- How to fetch results from database
- How to resize an image server-side before upload?
- Manipulate database of WordPress site with my own scripts
- Unserializeing multiple column values that are stored in one database results variable
- Best way to define a database with product codes and back-end support?
- How to connect database table to each registered wordpress user.
- Problems with plugin that fetches data from database with ajax
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- Check if values exists DB
- Name Input from widget displays Sidebar name instead of saved data
- Querying multiple meta_keys in WordPress SQL query
- Let users register weight each day and save it in DB
- Can’t upload files
- MySQL database migration to WordPress
- Host does not allow remote connection, so how do I transfer data to my WordPress site?
- Trying to post information from a remote database to wordpress page
- MySQL Engine vs. Charset
- Query specific posts per user selections from dropdown menus
- File Upload with Server in safe_mode
- Custom query_posts() parameter
- Create an unique ID number after submit form
- How to print array of specific item
- Fetching wpdb data from a php file seems to break?
- Edit Image/Image Details – Replace button missing
- Correct Syntax for uploading files to custom directory in WordPress
- How to check if a value exists in one of two database tables
- How to pass username into form that sends data to database
- How to edit the default database of WordPress [closed]
- PHP Call to External Database
- Insert into db with foreach problem
- How to automatically convert images to WebP on WordPress?
- notify users when changed database
- Display total count of products in orders of a specific order status
- How do I empty a specific meta_value for all users in PHP
- save array of objects with update_option
- Create custom table for wordpress custom registration flow
- Generate and upload screenshot as featured image for user-submitted post
- Pull latest Youtube Video from json url and make new post
- Execute multiple PHP Snippets causes error?
- 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