Why not just add .txt
to the file? It’s probably the safest thing to do. If you need the file name to display without the extension, you can always filter the string.
Related Posts:
- Physical organization of wordpress media library (Real Media Library plugin)
- Extend Media Library
- How to make “Upload files”selected by default in Insert Media?
- Upload post thumbnail from the front end
- WordPress 3.5: Switch back to Old Media Uploader?
- How are the year and month folders added to the uploads directory?
- Where does wordpress store the FTP credentials?
- wp_generate_attachment_metadata returns empty array
- Password protect some uploaded files, so only logged-in users can view them
- using media uploader to select image of specific size, enforce cropper
- Change URLs for static content
- How to save media files under “http://example.com/custom_folder” for a specific page
- Post type specific upload folder in 3.5
- How to get profile user id when uploading image via media uploader on profile page
- Accessing Media/Files outside the_content
- Media uploader not work properly [closed]
- “HTTP error” randomly on image uploads
- View content from uploaded file in editor
- Media upload – choose only one file
- Add suffix to filename of uploaded images
- WordPress cannot upload data after migration
- How to rewrite WordPress uploads folder to another folder using htaccess
- Retroactively place uploaded media into -month, -year based folders?
- Can’t seem to upload a file to a custom directory
- wp.media add context
- Conditional add_filter for upload directory?
- Need to download uploaded binary file
- Insert Image automatically when upload finishes wordpress media uploader
- How do I modify the url of uploaded media content?
- WordPress “HTTP error.” when uploading Media – IIS
- WordPress uploads folder path. how it is decided?
- Limit upload file type on one custom post type
- Uploading images on front end doesn’t generate thumbnail sizes
- Filter / Hook to get attachment ID before uploading?
- Adding Media Upload to Custom Options Panel breaks “Insert into Post”
- PDF file upload issue
- WordPress bug with capabilities?
- Update image via WP REST API
- media_handle_upload() progress bar
- Media Library does not show the uploaded image
- Attach Thumbnail Generated from Video Upload as Featured Image for the Video
- ‘An error occurred in the upload. Please try again later.’ for users with different roles
- Manipulate CSV data during upload, is it possible?
- Check if uploaded file has a specific filename
- How to submit data between wp_iframe and backbone.js in media upload
- Uploading .mp3 files http error – 2 “exact” files one successful other fails
- Set post_parent value for the images uploaded by Add Media button into post
- What are best practices to storing uploads in WordPress?
- Original image not saving?
- Restrict role to view own media
- Create featured image from a remote url when creating a post
- Using Add from Server to upload by post ID
- Image resizing – TimThumb vs convert on upload?
- File names are being overridden when uploading new media
- Patient portal using wordpress
- Stop image resizing in particular case – is that possible?
- Change the look of the media uploader
- Issue with images which have no sizes available
- Is it safe to upload JSON files to upload folder?
- Unable to upload file more than 1MB in size
- WordPress media upload issue could not insert attachment into the database
- Thumbnail images missing in WP media library
- Using Windows Server 2012 How to Move Uploads Folder to another hard drive
- get_attached_file returns wrong path after changing media upload dir
- How to adapt upload_dir to save files outside of WP uploads folder
- wp_enqueue_media() and upload_mimes problem
- Reattach media after moving to another server
- Upload a custom csv file, read contents and delete that file
- What if I have a large file on the server that I want the wp library to have?
- Limit image upload to 10
- Bug: Deleting file, then uploading same file again places file in an old month folder
- Can i add custom meta box (Media Uploader) at Category Description
- Complicated image name like flickr does and deny access just to original image
- Create multiple folders in upload media folder
- How to change Route respond To A specific Path?
- Where to store sensitive uploaded file?
- Media Library: Remove replace images of selected author
- how to change the max size of media upload? video audio wp 4.9.6
- How to upload multiple images using WP rest API to media?
- How to do action form from functions.php?
- Custom gallery displayin and sorting error
- Access featured image URL based on media ID?
- Import all media referenced in posts
- How use custom upload directories in filesystem and url based on media type or category
- Site Icon upload and display in a theme
- Include file upload button inside post and process file
- get users nickname uploaded media
- How to configure WordPress to create thumbnails
- My deleted media exists jet
- owner/group issue on server
- wordpress 3.6 media manager cropping timestamp
- Automatically adding images to a certain page through the Media Uploader
- Disable media upload in rich text editor
- How do I protect my uploads?
- WordPress shows different upload_max_filesize than php.ini setting
- Theme upload fails
- Retroactively change Permalinks for media files after disabling year/month format
- How to upload DICOM (dcm) files using wordpress wp_handle_upload?
- How to properly move media files and update data?
- How can I add custom sizes for PDF thumbnails generation?