The unfortunate answer is that I don’t think there’s anything you can really do to prevent this.
Assuming we’re talking about a Linux based server as the destination for your theme, the umask settings for the ftp user determines the permissions for new files, such as a fresh upload of your theme’s files.
It also could be affected by whether or not the ftp user being used to upload the files (who will also be the owner of the file) is the same as the user running WordPress or in the same group. However if there is any sanity in their server setup all those files should be readable by all users, but it sounds like your issues with JavaScript files suggest that isn’t the case.
Related Posts:
- FTP credentials on localhost [duplicate]
- Unable to locate WordPress Plugin directory. ftp_base not working?
- Plugin installation not possible / FTP credentials in WP-config
- Valid Connection Information is Getting Denied
- PHP Fatal error: Call to undefined function wp_cache_get() in /var/www/vhosts/visisite.com/httpdocs/wp-includes/functions.php on line 1367
- Why wordpress cannot write to directory and how to fix it?
- How to edit page content after downloading the site files
- Upload files only on FTP
- FTP installation of WordPress
- SSH Server with WordPress
- Download PHP and CSS from the WordPress admin page without FTP
- How to cause the WordPress web interface to update via FTP
- WordPress FTP Error: “Failed to connect to FTP Server”
- Does WordPress still ask for FTP credentials for each file operation?
- How I do I host a simple html file through wordpress? (see details) [closed]
- FTP or Cpanel installation of WordPress
- Website Got Hacked – Fixed – Now Cannot Activate Theme
- FTP Connection Information after Installation in Cygwin
- How to auto upload image from external source(computer) to webpage
- WordPress change homepage link (htaccess) (index)
- Upload and configure WordPress
- ftp not retrieving my directory file ,anyone have solution?
- FTP connection information + warning lines appearing on the homepage of my campsite?
- Failed to connect to PC:21 – WordPress & XAMPP
- FTP file manager AS wordpress site
- Is there any way to ftp into wordpress if I paid for my own domain? I want to set up google analytics
- WordPress not syncing with FTP
- file compressed the content on single line after upload in wordpress
- How to use rsync over FTP
- Using wget to recursively download whole FTP directories
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Filezilla FTP Server Fails to Retrieve Directory Listing
- How to connect to FTP over TLS/SSL (FTPS) server in Java
- how can I login anonymously with ftp (/usr/bin/ftp)?
- Is there a Public FTP server to test upload and download?
- WordPress asking for my FTP credentials to install plugins
- WordPress asking for my FTP credentials to install plugins
- Import WordPress xml file larger than 8mb
- How to save Admin FTP password
- How to stop wordpress from changing default .htaccess permissions to 444
- Why does WordPress still not support SFTP?
- WP Config for FTP credentials
- How to set path with WP_Filesystem and ftp base / chroot
- Migrate localhost to server
- Theme not showing after uploading
- Connect to server with SFTP instead of FTP/FTPS within WordPress Backup
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- Can I upgrade plugins via FTP?
- WordPress Images Not Showing When FTP
- How can I view or FTP into my WordPress site hosted on AWS?
- enable SFTP via SSH keys in wordpress
- WordPress asking for FTP details when installing plugins
- How do the pros code up a WordPress theme? Locally? Through FTP?
- Prevent WordPress installing plugins and themes via Admin
- Unable to locate WordPress Root directory
- WordPress CSS doesn’t update
- WordPress isn’t reflecting changes I make to a specific file via FTP [closed]
- Linux Permissions and Ownership for WordPress
- Install and Update plugins on a VPS WordPress installation
- Unable to access wordpress login.php [closed]
- wordpress css file
- Download images from media library to computer in BULK?
- Instant install of wordpress
- WordPress Installed But Not Showing Up! [closed]
- Storing FTP details in wp-config.php
- disabling ftp on wordpress
- FTP + Unable to locate WordPress content directory (wp-content)
- How is FTP used for upgrade?
- “Backdoor-list.txt” files unexpectedly in server
- will creating a static folder in the root directory serve the purpose of loading the static content from cookieless domain?
- WordPress 4.4.2 Update not working
- I want to edit it on my laptop as a child theme and transfer the files to my server. I don’t know how
- Impossible to index an upload folder with 10k files
- Site migration from Localhost to Server – 404 errors
- Wp-Admin FTPS Connection Error unlike Filezilla
- SFTP define in wp-config.php
- FTP not working on a specific WordPress site but working on others (and Filezilla) [closed]
- Broken theme, stylesheet is missing after uploading the right theme via FTP
- my wordpress configuration locally vs live server
- The style.php file inside theme-engine folder has other content on FTP
- Disabling forced FTP credentials for any updates
- why is sportspress asking for FTP credentials on a local installation?
- FTP access to NAS drive files/folders from WordPress site
- CSS and JS not loading after uploading onto server
- blank page after update my theme
- Installing Theme from uploaded file. Not uploaded theme?
- WordPress FTP/media directory permissions problem?
- WP-admin plugin installation via FTP silently fails on shared hosting
- CSS updates appear after delay [closed]
- How to display the date a directory folder on ftp was modified
- Changing themes on locally hosted webpages
- Second completely independent and disposable WordPress installation in subdirectory?
- Plugins upload to wordpress in wampserver via filezilla
- Uploading a external squeeze page within WP
- FTPS Uploads – wp-content cannot be found
- Do I need FTP set up to upload files to wordpress server
- New folder and file permissions are not correct
- ERROR: Cookies are blocked due to unexpected output – no access to FTP
- Updating Media Library PDF’s in bulk
- Many images in wp-content/uploads folder that are not in Media Library