It seems like you are creating the folder on main site and trying to read from it on a sub site. This is not the right way to go, remeber that on multisite each site, except for user management, is almost 100% isolated full wordpress that has no easy access to data from other sites.
Assuming there should be only one such file in the system, What you probably need to do is to do the file creation and access in the context of the main site which is usually blog #1, something like
// to write
swicth_to_blog(1);
write file data
restore_blog();
// to read
swicth_to_blog(1);
read file data
restore_blog();
Related Posts:
- “Add Media” button in custom plugin
- Allow all file types for upload
- Remote upload file to server B
- Upload specific images to specific folder
- Any plugin out there that uses WP’s internal image uploader?
- How to upload image with simple form?
- How to make WordPress use protocol indepentent upload files?
- how does wp.media javascript library work?
- How to create an edit media button for slideshow plugin?
- Please select a file error
- Use Media Uploader in Plugin
- How can I add a custom meta value on file upload?
- How to upload thousands of images?
- Extending WP’s upload/insert media functionality
- Deleting images through upload folder, but not deleting from media library
- Generated Images sizes do not match Media Settings Image Size
- How can I use a video header that’s over 8MB?
- Admin page: form with enctype=”multipart/form-data” does not transfer its data
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- AJAX image upload with a upload progress bar using media_handle_upload
- Is it possible to personalize the Media Library?
- Changing image URLs in media library
- Bulk Image Uploader to create new post from each image [closed]
- Upload file inside plugins options page
- Adding Attachment Display Settings in custom media frame
- Find unused images?
- Plugin upload to install
- Why does my functions.php cause white-screen and media-library issues?
- Image upload and other options in the same plugin settings form?
- How organize uploaded media in WP?
- How to find the origin of a file upload from within wp_handle_upload?
- How to change File URL in file uploaded to s3 compatible storage with self written plugin [closed]
- Restrict media upload size by format
- wp_generate_attachment_metadata is creating an empty array
- Removing included CSS file that doesn’t exist
- Submit page limited in time to upload image
- wp.media javascript issue with on select
- How to upload WordPress Images to remote web server and display those images in WordPress gallery [closed]
- Auto move media file to cloud
- Add custom JavaScript that is a combination of CDN/uploaded files and easily-edited code?
- media page returnig to 404 in rtmedia [closed]
- Media Upload Tab reload and change $_GET
- Bulk Image Upload And Rerrange Functionality
- Redirect to another page using contact form 7? [closed]
- Is it possible for a plugin to force reading and writing of uploaded images to a database instead of to a filesystem?
- How to change the wp_upload_dir() path in plugin
- Use wp_upload_dir() correctly
- Measure and limit file uploads
- adding a button to the media uploader
- Is there a function to list all uploaded images? How can I add one?
- custom uploader in the admin area
- Allowing .rfa Files In Media Upload [duplicate]
- Programatically upload a file to be stored inside blob field in database, NOT on filesystem
- How to accept images at multiple sizes and aspect ratios and display as standardized image size / ratio?
- download button for audio file in post [closed]
- Large amount image data transfer
- File Uploader – Upload without adding to Media Library
- How programatically cause uploads folder to be created?
- Issue with wp_handle_upload
- Add a file upload field
- How To Create A File Archive in WordPress?
- WordPress does not allow me to upload a .xml file
- Simple sildeshow/image-upload plugin?
- WordPress not showing manually uploaded files in Uploads folder on Media Library
- How to upload large media file in chunks, without any plugin?
- How to copy the all WordPress media items to another custom plugin folder?
- HTTP Error upload ( localhost )
- Is there a way to auto generate poster image for videos
- how to split and upload a theme on wordpress?
- How to Upload images to a custom folder in upload folder using media uploader
- what functions to use to resize images and create DB metadata for them after/during upload?
- the content of the uploads folder gets deleted periodically, how to figure out what causes it?
- Powerpress upload a podcast without creating a post for it
- Cannot display wordpress thumbnail
- upload multiple images using wp_handle_upload
- Remove special characters from filenames
- woocommerce with external ftp site
- multiple image upload using wp_enqueue_media
- Move plugin upload folder from mywebsite.com/wp-content/uploads/pdfuploads to mywebsite.com/pdfs?
- Uploading images to custom table
- Not able to upload Plugins/ Theme from Admin backend
- Soflyy WP All Import Custom File Download Issue
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- WP default file upload hook not working if used in a plugin
- Where to store media uploaded by the plugin?
- How to install jquery dotdotdot plugin for WordPress?
- Issue: CSV file upload works only when “View page source” is done
- How to prevent intermediate images from being created but keep the sizes available for selection in the media library?
- image upload error wordpress
- include plugin folder directly in theme folder to load faster page n wp
- Is there a WP-Plugin to convert PNG to GIF? [closed]
- Upload Image to desired directory through plugin
- How to rename files during upload to a random string?
- how to get the url of a custom uploaded file
- wp_handle_upload – specified file failed upload test
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- upload_mimes is getting ingored, how to add a new mime type?
- How To Convert External Image URLs To Own Website’s Uploaded Images Automatically?
- I want to allow certain file types on dokan upload files