• Resolved DexterG

    (@dexterg)


    One year and six months ago AlenP57 wrote in response to:
    Can’t move media to uploads/ !?

    “Pervious I have reviewed the drag and drop code related to the uploads folder and could not find a reason why drag and drop does not work as the code and all the proper HTML elements are present. You can upload files directly to the Uploads folder but it is not possible to move files from another folder to Uploads.”

    Has this problem been fixed? Or is it still impossible to move media back into the uploads folder once you have moved it to another folder created by MLF?

Viewing 15 replies - 16 through 30 (of 34 total)
  • OK. That is a fair perspective (whether or not to use ‘old’ WP uploads/y/m structure).

    Right now, I have an ample amount of images in the /uploads/ folder and likely just as many in the ‘old’ /uploads/year/month taxonomy. And I’d like to clean it up and bring it back into some sort of order.

    I guess I need to figure out which direction to go and to stick with it.

    I did sync MLF but didn’t see the images from the /uploads/ folder so got frustrated. Will try it again and see what happens.

    Appreciate the quick response!

    • This reply was modified 4 years, 1 month ago by sgclark.
    Plugin Author AlanP57

    (@alanp57)

    The Pro version of the plugin my help you remove files from your upload folders. It has a pagination feature that can be turned on and you can set the number of images to display per page. Then you can load, let’s say 100 images, move them to folders. Do test that when images are move that their links are properly updated before moving all your images.

    Thread Starter DexterG

    (@dexterg)

    I was able to verify what you said, Peter S, that dragging images from near their top edge will work, but if you click and drag anywhere else on the image thumbnail it won’t work.

    This shows that it’s not an issue with the “uploads” folder itself but with the top folder, positionally, in the list of folders. This could be, as I’ve suggested, due to an interaction between the dragged thumbnail and the “Add File” button which is located right above the list of folders, which could be triggering a mouse-over event on that control. It could also be because the dragged thumbnail is extending outside of the folder display box. It seems that these two possibilities could easily be tested by inserting a spacer above the folders list, effectively pushing them down so that there is no longer any interaction with the top edge of the box they are in or the control located directly above the box.

    Apparently, AlanP is the only one who can conduct this test, but he’s been strangely silent for the last three days on his investigation into the cause of this bug. I’m wondering if he’s even planning to fix it, or just sweep it under the run again as has happened for years?

    Thread Starter DexterG

    (@dexterg)

    By the way, during my testing this weekend I was able to verify that every time you move an image or group of images out of a folder with MLF it leaves behind a complete collection of scaled thumbnails for those images. Unless, of course, the images are smaller than the minimum thumbnail size of 150 x 150, in which case they won’t generate any thumbnails.

    Here is the exact procedure I followed: 1.) create a folder with MLF, 2.) move one or more images (larger than 150 x 150 pixels) into it using MLF, 3.) move all of the images out of the folder using MLF.

    Results: The folder will now appear empty in MLF, but if you check with FTP, all of the scaled thumbnails for those moved images are still there in the “empty” folder (bigger images will have more thumbnails because they can be scaled into more sizes). Also, if you press the MLF “Sync” button while viewing the “empty” folder, the program will find all of the scaled thumbnails for the images that were moved out of the folder and display them as new images. It is worth noting that the moved images have new thumbnails that are generated in the folder that they were moved to. This can be verified by looking at the file creation dates with FTP.

    Alan P has not responded to this MLF program bug either in the three days since I first mentioned it in this thread. I would like to hear what he has to say about it and hope he is not simply ignoring the problem. The results I got should be easy to replicate by following the steps outlined above.

    Hi Dexter

    Good to see you can move the image with my suggestion.
    But you have to bear in mind that Alan has a weekend just as you have. So be a bit more patient please.
    Now he knows where to look I am convinced he will come with a solution.

    Plugin Author AlanP57

    (@alanp57)

    When seeking support for a WordPress issue on a public forum I prefer to be respectful and patient with my comments.

    I’ll see if I can reproduce the thumbnail issue and get back to you.

    Plugin Author AlanP57

    (@alanp57)

    I created a new folder, moved images to the folder and then move the images out of the folder. There was no problem moving the thumbnails. Perhaps there is something unusual about your thumbnails. You could try deactivating any plugins that do operations on images and try moving the images.

    Thread Starter DexterG

    (@dexterg)

    MLF is the only plugin that’s active. I just tried it again with a brand new image that I just uploaded. Same thing happens: three scaled thumbnails of that image in various sizes were left behind in the source folder and three new scaled thumbnails were created in the target folder. I’m using WordPress 5.6.1 and the default Twenty Twenty-One theme, in case you are wondering.

    Plugin Author AlanP57

    (@alanp57)

    Some thumbnails were left behind when testing with the 2021 theme. I did work on the issue of scaled images some months ago. For now you can turn off the scaling feature in Media Library Folders. I will have an opportunity to look into this next week.

    Thread Starter DexterG

    (@dexterg)

    Alan, I appreciate your acknowledging that there is a problem and stating that you will look into it. -Dexter

    @psmits1567, @alanp57, @dexterg Thank you for taking the time to find a solution to this! You guys rock! You have saved me hours of work, perhaps even days! I bow before you!

    Plugin Author AlanP57

    (@alanp57)

    @dexterg, I’ve added debugging code to the move function and tested uploading and then moving files three times but each time all the thumbnails were moved including the scaled images.

    • This reply was modified 4 years, 1 month ago by AlanP57.
    Thread Starter DexterG

    (@dexterg)

    Nothing has changed for me. Everytime I move an image from one folder to another it leaves behind all of the thumbnails and creates new ones in the “moved to” folder. This can be verified by running MLF Sync or by looking at the contents of the folders directly with FTP. By looking at the “last modified” timestamps on the thumbnails you can confirm when they are being created.

    Perhaps it’s a function of which version of PHP my host/server is running? I just checked and it reports PHP 7.4.14.

    Thread Starter DexterG

    (@dexterg)

    Whoever marked this topic as Resolved is a liar because neither of the two bugs (aka programming errors) that I pointed out have been fixed.

    Plugin Author AlanP57

    (@alanp57)

    The original request was concerning moving files to the uploads folder and Peter was able to find a way to do that and that is the reason it is marked as resolved.

    As for making the move to uploads operation work perfectly that will have to wait for another time as I have previously look into this issue did not find a way to solve it. Understand we have other other support requests to deal with plus work on adding new features to the plugin.

    As for the issue with the thumbnails, it is necessary to be able reproduce the issue in order to be able to fix it.

Viewing 15 replies - 16 through 30 (of 34 total)
  • The topic ‘Has this problem been fixed?’ is closed to new replies.