• Resolved jonwatson87

    (@jonwatson87)


    I’m having a problem uploading files using file_advanced.

    Essentially, the file uploads but isn’t immediately visible or selectable – I can only see old media library content, not the new stuff I’ve just added.

    To see it I actually have to close the popup, save or publish the post and then click on the Add Media button again. Then I can see it and select it as normal.

    I haven’t defined mime_type anywhere, but my understanding was that this limits the files I can see to specific types, rather than making a specific type visible.

    Is this a known bug, or am I doing something wrong?

    https://wordpress.org/plugins/meta-box/

Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Contributor Manny Fleurmond

    (@funkatronic)

    This is a bug with the WP media frame and we’re trying to find a way to resolve this.

    Hi Manny and Jon,

    I just ran into the same problem.
    I’ve downgraded to version 4.5.7 which is still working as normal.

    Normally the media select modal shows the file being uploaded at the main collection of images, but not anymore version 4.6.0.
    After some switching around is does appear like Jon says.

    Thanks!
    Ruud

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    Alright, now I got the gist of whats going on. In the new code, I’m preventing the media that are already selected from showing up in the modal. That is what is preventing the uploads from showing up. Now that I know why this is happening, I’ll have to change how the modal is invoked. Instead of not showing the already selected images/files, I’ll have them show up in the modal selected. This will change the modal’s behavior: you will now be able to add and remove the images in the modal instead of just adding.

    I’ll keep you guys posted once I have the code worked out. Thanks for the patience

    Hi Manny,
    Thanks for your quick reply.

    I’m not sure that being able to remove images from the modals’-collection pane is needed. But pre-selecting the file uploaded is the default action of the modal in the 4.5.7 version which is excellent.
    How would it work if you upload files simultaneously? select none, select all?

    Thanks,
    Ruud

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    Alright, fixed in the latest commit on the Github page: https://github.com/rilwis/meta-box/commit/23fe384f1b44b56b2a2a19bd4fec03ad4cec7725

    Please download and test, though it works fine for me. There is one caveat that I’m hoping will get fixed in WP in the future but as it stands, this fix works.

    Hoi Manny,

    I tried your fix, and the newly uploaded file is visible and selected after upload.

    Thanks,
    Ruud

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    No problem. I’m considering this resolved

    I pushed the changed file to the server for now.
    Are your releasing an intermediate version, like 4.6.1?

    Plugin Contributor Manny Fleurmond

    (@funkatronic)

    That’s up to the head author but most likely, yes

    Thanks, would appreciate that.

    The fix works, please release an update for the plugin.

    Thread Starter jonwatson87

    (@jonwatson87)

    Ideal! Working perfectly!

    Have replaced the plugin with the github master version and the problem has been solved.

    I’ll put the main plugin back once an update is released. Thanks for working this out! 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘file_advanced upload bug/issue – mime_type?’ is closed to new replies.