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:
- Allow all file types for upload
- Remote upload file to server B
- What plugin can I use to create a list / slideshow of featured images?
- Upload specific images to specific folder
- Any plugin out there that uses WP’s internal image uploader?
- How to upload image with simple form?
- Way to force media uploader use custom image size
- How to make WordPress use protocol indepentent upload files?
- How to create an edit media button for slideshow plugin?
- Use Media Uploader in Plugin
- How can I add a custom meta value on file upload?
- 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
- Saving/Writing/Adding file to upload folder
- How can I process xml file on upload?
- 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
- Changing image URLs in media library
- Bulk Image Uploader to create new post from each image [closed]
- Adding Attachment Display Settings in custom media frame
- Find unused images?
- Plugin upload to install
- Media upload not working on theme option in WordPress 3.8.1
- 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?
- Plugin or method to delete uploads not in media library?
- 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
- 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
- transfer a file from one domain to another via wp
- 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
- Plugin Not Working After Being Uploaded To WordPress Plugin Repository
- 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
- Measure and limit file uploads
- Is there a function to list all uploaded images? How can I add one?
- 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?
- Detect plugin/theme installation (via upload)
- How To Create A File Archive in WordPress?
- WordPress does not allow me to upload a .xml file
- Simple sildeshow/image-upload plugin?
- How to upload large media file in chunks, without any plugin?
- Upload PlugIn Button is missing
- 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
- Access remote SFTP server via WordPress login?
- how to split and upload a theme on wordpress?
- Is it possible to pull all featured images from WP database only?
- 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?
- 500 Internal server error wp_handle_upload_prefilter
- Cannot display wordpress thumbnail
- upload multiple images using wp_handle_upload
- How wordpress handle urls present in db for external wp-content directory
- 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
- Media library and Upload media problem
- Soflyy WP All Import Custom File Download Issue
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- Media Upload to custom database and Custom Directory
- 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 create a dashboard for logged-in users with custom functionality? [closed]
- image upload error wordpress
- Plugin programming: Uploading a file to a specific folder
- Upload Image to desired directory through plugin
- I want to disable certain file types from upload from dokan description field
- How to rename files during upload to a random string?
- wp_handle_upload – specified file failed upload test
- Uploading a plugin as .zip
- Increased max_upload_filesize, but still can’t upload plugin [closed]
- How to connect WordPress media to another host?
- Upload the images folder with sub-folders directly to server
- 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
- stop resize button for wordpress media