Hello, I installed this plugin to be able to view the images within the library, I tried to change the path to my Uploaded folder but I still don’t see them. Can you help me with this?
]]>Hi !
Since version 2.4.1 of the plugin, I encounter a problem with “Store uploaded files in this folder” input. Indeed, my input deliberately started with a slash / in order to use an absolute path.
I guess this is voluntary, but I point it out anyway because if this behavior becomes problematic for me, it can become problematic for other people. Personally, I reinstalled version 2.4.0.
Have a nice day.
Paul.
]]>Hello.
We have our WP installed in:
https://domain.com/wordpress/
This plugin is of course inside that folder.
https://domain.com/wordpress/wp-content/plugins/...
But I’d like the media to be in our parent folder on the domain:
https://domain.com/media/
How can I set the path to be that, and not /wordpress/media/
?
Whenever the new year starts the permissions on the WP Content and the uploads folder change from 755 to 750 on many of the WP sites I manage. The common factor is the WP Original Media Path plugin. Sites without the plugin have not experienced this issue. It has been happening every January for several years now I haven’t had the time to look into it fully and assumed it was the hosting. My Hosting company has looked into it and there is nothing at their end that would be doing this. I end up with
All other folders under wp-content and uploads remain 755. This means any files uploaded to the site after the beginning of the new year don��t show in the media library or on the website. I have to login to cPanel on 20+ and reset the permissions to 755 for the folders and 644 for the files.
On all the sites I have the Full URL path to files
set to a subdomain (e.g. https://img.mydomain.com) that points to the wp-content/uploads
folder.
I don’t know how I can force the date on shared hosting to trip the year change to test this fully.
Could you please check the code to see if there is a reason this is happening.
Many Thanks!
Hello,
I was very happy with this plugin the last few years but now I want to use a CDN.
So now I want to uninstall and revert the changes, so what is the installation procedure?
Lately we had some issues with wrong permissions.
To some it up:
caching plugin minifies css files and creates a new folder where the minified .css is stored. This works fine with original path. It doesn’t work so well with this plugin.
“Based on my observations our plugin successfully generates the directory where the minified assets will be stored, however one of the main folders where the minified .css files are stored had incorrect permissions:
711
I went ahead and corrected all file and directory to their default values of 0644 for files and 0755 for directories.”
Is this something that is / can be controlled by your plugin?
]]>Greetings. I followed the instructions on https://www.ads-software.com/plugins/wp-original-media-path/#installation but the images moved from the default wordpress folder to the newly created folder are not displayed in the media library.
Images I have uploaded since the migration do show up. Any idea what may be going on?
]]>the plugin works, but it broke my theme, especially the header portion. i have append the image link
another image of how it broke the theme
Hello,
I have moved the WP media library to a subdomain with the help of a tutorial.
The tutorial did not show if WordPress has to be installed on the subdomain. So I first tried WordPress for the main and subdomain and installed the plugin WP Original Media Path.
Result: The images were output with a different extension and therefore not displayed. Now I have on the main domain WordPress and on the subdomain there is only the image folder. I entered the media path correctly and still the images are not displayed in the media library.
Message: There are no media files available.
Unfortunately the page is offline.
Can you help me? Where could the error be? Thank you Anette
Hi
I have thumbnail image issue
Can you help me with this?
https://prnt.sc/nq5svl
Thank you in advance
/**
* Upload User File.
*
* @param [type] $file video url.
* @param [type] $post_id Post id.
*/
function king_upload_user_file( $file = array(), $post_id ) {
require_once ABSPATH . 'wp-admin/includes/admin.php';
$file_return = wp_handle_upload( $file, array( 'test_form' => false ) );
if ( isset( $file_return['error'] ) || isset( $file_return['upload_error_handler'] ) ) {
return false;
} else {
$filename = $file_return['file'];
$attachment = array(
'post_mime_type' => $file_return['type'],
'post_content' => '',
'post_type' => 'attachment',
'post_status' => 'inherit',
'guid' => $file_return['url'],
);
$attachment_id = wp_insert_attachment( $attachment, $file_return['url'], $post_id );
require_once( ABSPATH . 'wp-admin/includes/image.php' );
$attachment_data = wp_generate_attachment_metadata( $attachment_id, $filename );
wp_update_attachment_metadata( $attachment_id, $attachment_data );
if ( 0 < intval( $attachment_id ) ) {
return $attachment_id;
}
}
return false;
}
]]>
Hi, I’m on step 3 and stuck at changing the URL in the Search & Replace plugin. The description of that plugin suggests that the forward slash at the end of the URL matters:
So with this in mind, what is the proper way of changing this url? Do I search with a forward slash at the end, and replace in the same manner?
]]>Hi, do you think is possible to use your plugin as so:
To have,
1 fast server so the pages load instantly, (but also not to add the additional GB from all the images, which keeps the cost down)
and
1 cheap hosting for images, like bluehost shared hosting which offers unlimited space but limited resources, that��s also connected to cloudflair.
I think this way I can have a fast site and also save cost on hosting.
What do you think of this scenario?
Thank you
Hi @rvola
I have just installed your plugin and set destination folder to https://www.mydomain.com/images
The images go into the folder and I can see them when I go into file manager in my hosting cpanel. However, they do not show up (blank/error):
I note that @impresseo had a similar issue and that you said:
“it can have a problem of rights on the creation of files (755).
This problem is not due to the plugin, but to the server configuration (apache + ftp user) that does not allow PHP files to modify file rights.”
Can you explain how to correct the issue? – what sort of code to look for, where to look for it and what to replace it with
I appreciate any help that you can give
]]>The path seems to reset after deleting the plugin. Would like to see an option to keep the change after removing the plugin. Deactivating the plugin does keep the change though.
]]>Hello!
I’ve changed my uploads path to /media. Every new upload goes there, but the old ones were still in wp-content/uploads, so I changed it using Search and Replace plugin. Everything went good, but now the images with changed url went blank.
Can you tell me how can I fix it?
Thanks, Kacper
]]>We are working with a QNAP install of WordPress.
When we enter in the following path:
wordpress/wp-content/uploads/PHQ-V1-shared
the plug-in rewrites to:
wordpress/wp-content/uploads/phq-v1-shared
and the files are NOT uploaded as the path is not found.
Same issue for URL path.
Any chance you can add a check box to OPTIONALLY “LEAVE PATH AS WRITTEN” and not automatically convert to lower case?
]]>�����ҧݧ֧ާ� �ҧ�ݧ� �� ���ާ�, ��� ���� �ӧڧӧ֧է֧ߧ�? �ާ֧�?�ѧ�ѧۧ�?�� �� ��?�էէ�ާ֧� mediafiles.domain.com.ua �ߧ� ��?�է�ҧ�ѧاѧݧڧ�� ?�ܧ�ߧܧ� �٧�ҧ�ѧا֧ߧ� �� �ާ֧�?�ѧ�?�ҧ�?���֧�? ? �ߧ� �ӧ֧ҧ�ѧۧ�?. ����� ����ާ� �٧�ҧ�ѧا֧ߧߧ� �ߧ��ާѧݧ�ߧ� �٧ѧӧѧߧ�ѧا�ӧѧݧڧ�� ? �٧ҧ֧�?�ԧѧݧڧ�� �� ��֧�? ��?�էէ�ާ֧ߧ�.
����է�? �ߧѧݧѧ���ӧѧߧߧ� DNS ��� ��֧�֧� .htaccess �ߧ� �է���ާ�ԧݧ�. ���ڧ�?��֧ߧߧ� ����ҧݧ֧ާ� – �٧�?�ߧڧ�� �ߧѧݧѧ���ӧѧߧߧ� ��֧ܧ� ��?�էէ�ާ֧ߧ� mediafiles.domain.com.ua �ߧ� rwx r-x r-x. ? �ӧ�� ���ѧ��?. ����ާ� ��� ��֧�֧� ��ݧ�??�� ���ߧ�ӧߧڧ� �է�ާ֧� �ҧѧ�ڧ�� ��?�էէ�ާ֧�, ��� ��������, ������ �ҧ֧� �ӧ���ߧ� ���٧�ڧ�֧ߧڧ� ���ѧ� �է������ �է� ��??? “��֧ܧ�” �ߧ� �ާ�ا� �ӧѧ�?�ѧ�ڧӧߧ� ��ҧ��ҧݧ��� �٧�ҧ�ѧا֧ߧߧ� (�ѧէا� ���� �٧ѧӧѧߧ�ѧا֧ߧ�? ��է�ѧ٧� �ާ�ا��� ���ӧ���ӧѧ�ڧ�� �է֧�?�ݧ�ܧ� ��?�٧ߧ���٧�?��ߧڧ� �ܧ��?�� �٧�ҧ�ѧا֧ߧߧ�).
ENGLISH: The problem was that when working through plugin with subdomain mediafiles.domain.com, then thumbnails didn’t appear in medialibrary and images didn’t show up on website. Although, the images loaded correctly and I could open them in medialibrary for example for editing. The DNS or .htaccess settings change didn’t help at all. The solution was so obvious and simple – extend permission rights on subdomain folder itself (mediafiles.domain.com) manually to rwx r-x r-x and recoursively the included folders. The files I set rw- r– r– . Then everything have started to work properly.
We want images to get uploaded to the subdomain, but not the PDFs so that we can have easier control over hiding them from Google. Can you please advise if there’s a way to do this?
Thanks!
There is an error in the latest version of the plugin:
Parse error: syntax error, unexpected T_STRING in /home/content/99/8921399/html/wp-content/plugins/wp-original-media-path/wp_original_media_path.php on line 26
It causes a fatal error on the site, and without the plugin active, I can’t access images & site media. Please try to address this ASAP. Thanks
]]>In your sticky post about version 2, you stated:
The concern, come that a user can ��crush�� the file of another site and suddenly it is not good.
The question: Could you please go into additional detail about what this means?
==========================BACKGROUND============================
After having your plugin active and in use for 2 years on our multisites, we recently had (with the 2.0 update) our entire multisite upload_path and upload_url_path values changes to incorrect values, apparently by your plugin, and I am working to explain what happened in a report to our department.
Example, for every site on the multisite:
Upload URL Path set to:
https://site.grc.nasa.gov/wp-content/uploads/site/# (for every site #)
Upload Path set to:
wp-content/uploads/sites/# (for every site #)
Thanks in advance.
]]>Hi guys !
I have good news and bad news.
The good first, I reviewed the operation and simplified the extension
Result there is only one field to fill and in addition I clean the field to be sure of what you enter.
And I hope to settle once and for all the little worries, I have completely updated the documentation!
Normally, beginners will love it!
The bad news is about the multisite … I tried to spend some time on the extension during my free time in order to make compatible with the mutlisite.
The concern, come that a user can “crush” the file of another site and suddenly it is not good. If anyone wants to expand the feature, I’m open to everything. The GitHub awaits you here friends: https://github.com/rvola/wp-original-media-path
Thank you for your support and do not hesitate to give a short note.
Your humble servant
/*in french*/
Salut les gars !
J’ai une bonne et une mauvaise nouvelle.
La bonne tout d’abord, j’ai revu le fonctionnement et simplifi�� l’extension
R��sultat il n’y a plus qu’un seul champ a remplir et en plus je nettoie le champ pour ��tre sur de ce que vous saisissez.
Et histoire de r��gler je l’esp��re une bonne fois pour toutes les petits soucis, j’ai mis �� jour compl��tement la documentation !
Normalement, les d��butants vont adorer ?a !
La mauvaise nouvelle c’est concernant le multisite… J’ai essay�� de passer un peu de temps sur l’extension pendant mon temps libre afin de rendre compatible avec les mutlisite.
Le souci, viens qu’un utilisateur peut “��craser” le dossier d’un autre site et du coup c’est pas bon. Si quelqu’un a envie de d��velopper la feature, je suis ouvert �� tout. Le GitHub vous attend ici les amis : https://github.com/rvola/wp-original-media-path
Merci de votre soutien et n’h��sitez pas �� donner une petite note.
Votre serviteur
]]>Hello sir.
I am New in wordpress, I need help for changing “Full URL path to files” BECAUSE
When i put Full URL path to files, I ALSO ADD “/” ON THE END and now all images are open with https://static.truecosmos.com//uploads/2017/04/7n8G0mr-1.jpg But i want this type
https://static.truecosmos.com/uploads/2017/04/7n8G0mr-1.jpg.
PLEASE TELL ME HOT TO SET NEW FULL PATH
THANK YOU.
]]>I’m testing the plugin but doesn’t seem to work for me on multisite.
I set up the following on wp-config.php: define(‘UPLOADS’, ‘files’);. Normally this works perfectly for me, but this time I installed wordpress on a subfolder called ‘root’.
On my main site images are saved on: https://www.samplesite.com/root/files/…
On my subdomains images are being saved on: https://www.samplesite.com/root/files/sites/(N)/… but the media files is reading https://www.samplesite.com/files/sites/(N)/… (not including the ‘root’ subfolder). And doesn’t show any images.
Im trying to set up the plugin like this:
Store uploads in this folder: files/sites/(N)
Full URL path to files: https://www.samplesite.com/root
This doesn’t work. I also tried adding / to each and this combination:
Store uploads in this folder: root/files/sites/(N)
Full URL path to files: https://www.samplesite.com
But nothing works. Any ideas?
]]>Hello,
I have one idea for plugin.
Everything is working on normal install. However on Multisite Network installation there is one little problem and i understand reasons why developers made it that way. But there could be possibility remove “site/{blog_id}” append after URL. I understand that Network install has possibility changing Media Path in Settings on every blog/site. But there is no possibility change this behavior.
I found out some kind solution on stackexchange:
https://wordpress.stackexchange.com/q/147750/1685
I am curious, could you add something similiar like this to your plugin and extend functionality on Network installations.
For example there will be checkbox when network installation is present. On individual blog/site in Media Path settings will be possibility remove “site/{blog_id}” from upload_dir function.
What do you think?
Thank you,
Best regards Igor
Hi,
i had the Problem, my Error Log is full with redirect errors.. I think it’s the Problem, when the Image can’t find.
So what i can do..
Right Path: https://images.dealerei.de/2016/12/t440x300-1482-400×225.jpg
But if i enter https://images.dealerei.de/2016/12/t440x300-1482-400×225-xxxxxxxxxx.jpg i become an Internal Server Error.
Can i change it so it’s redirect or other?
]]>Hi, I am trying to figure out how to modify the SQL code for the database of a multisite domain, with lots of sub-domains.
As my understanding, after changing the path, I will need to do followings.
UPDATE XX_posts
SET guid = REPLACE (guid, ‘https://www.old-website.com’, ‘https://www.new-website.com’);
WHERE post_type = ‘attachment’
UPDATE XX_posts
SET post_content = REPLACE (post_content, ‘https://www.old-website.com/wp-content/uploads’,’ https://www.new-website.com/wp-content/uploads);
————-
But, how do I do this for an WPMU site?
I have checked the database, it seems all original upload-path is not stored at /wp-content/uploads/, hence, not in the wp_x_options in the database.
Is there anyone could help me to sort this out, please?
]]>First and foremost, I apologize for what is likely a simple error. I have tried a variety of methods to correct this and each has failed.
I am using the most recent version of this plugin and WP 4.6.1. There are no custom themes and no additional plugins, everything is a vanilla install of WordPress and this module.
I have a subdomain set up, “https://cdn.example.com”, and a path in public_html “/example-path/uploads”. Both directories have 755 permissions.
Within the module settings, I have these fields:
– Store uploads in this folder: /example-path/uploads/
– Full URL path to files: https://cdn.example.com/example-path/uploads/
When trying to upload a simple image, I receive this error: “Unable to create directory uploads/2016/11. Is its parent directory writable by the server?”
I have also removed the “/” in the path settings, so it would read:
– Store uploads in this folder: example-path/uploads
– Full URL path to files: https://cdn.example.com/example-path/uploads
In this case, I get a false positive for uploads. The media library shows that the image was successfully processed, however the 2016/11/ directories were not created and an image does not exist.
I have tried quite a bit, but unfortunately I am having a lot of trouble with what seems to be a simple configuration. Any advice here is welcome. Thank you.
]]>I migrated a WordPress site to a new domain > mynewdomain.com
Then I created a subdomain and added directories > media.mynewdomain.com/wp-content/uploads
Then I uploaded the year/mo. directories to uploads on the subdomain.
Then I added https://media.mynewdomain.com/wp-content/uploads to > “Full URL path to files” field for the plugin, and saved. All of the images show up.
But when I add https://media.mynewdomain.com/wp-content/uploads to > “Store uploads in this folder” field for the plugin it creates a subdomain named directory inside the main domain’s root, when the real subdomain director is outside of the main domain root. When I leave “Store uploads in this folder” empty the uploads go to wp-content/uploads of the main domain, but don’t show in the library.
How do I get the images to upload to https://media.mynewdomain.com/wp-content/uploads when using the Media Library uploader?
]]>Hello,
The plugin work great and no issue with normal http.
Recently, I purchase SSL and installed on the server, update “Full URL path to files” to https but no change at end result, it still show http!
When I force add https to the url, it redirect to http.
My “Full URL path to files” is a sub-domain.
Could you please check on this?
Thank you.
https://www.ads-software.com/plugins/wp-original-media-path/
]]>hi, i had just found this plugin which could help me with what i am trying to achieve which is to have my images in another subdomain.. for a more centralized file sharing between my websites.
but after i installed this plugin, it cause my site to have a 504 error.. which went away after i deleted the plugin. could this plugin have any compatibility issues with other plugins?
or is there something else i could try? as i have been trying to find a solution for a centralized media sharing since yesterday and this plugin seems very promising.
TIA
https://www.ads-software.com/plugins/wp-original-media-path/
]]>