• Resolved randywardell

    (@randywardell)


    I can add media items when I’m in list view but when I’m in not in grid view (and that’s the view I want to work in). I have WP 5.4.2 installed at the moment.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor wpmedialibrary

    (@wpmedialibrary)

    What error message appears / what prevents you from adding media items in the grid view?

    I believe I am experiencing the same (or at least similar) issue.

    Here are the results of my debugging, and some questions:

    1) Media Library -> All Categories in List View: Clicking “Add New” takes me to media-new.php
    but
    Media Library -> All Categories in Grid View: Clicking “Add New” opens the uploader there on the screen.

    Is this an intentional difference, or perhaps part of the problem?

    2) Media Library -> All Categories in Grid View: Clicking “Add New” opens the uploader there on the screen, and uploading works as expected. My new image thumbnail appears in the grid.
    but
    Media Library -> Some Category in Grid View: The file uploads, but does not render on the screen. async-upload.php returns a status of 200 with a bunch of json including what looks like the html that it should write to the screen, but it just doesn’t. There’s no error message, and no javascript errors or other messages are logged to the console.
    Also of note, is that the image is NOT tagged with the category I was currently browsing, when it really feels like it should be. That is, if I’m currently filtering by “Animals -> Farm Animals” and click “Add New”, I would fully expect my upload to go “into” the category/folder I was browsing.

    Plugin Contributor wpmedialibrary

    (@wpmedialibrary)

    1) Media Library -> All Categories in List View: Clicking “Add New” takes me to media-new.php
    but
    Media Library -> All Categories in Grid View: Clicking “Add New” opens the uploader there on the screen.

    Is this an intentional difference, or perhaps part of the problem?

    That’s how WordPress functions on its List and Grid views, regardless of our Plugin’s usage. If you believe otherwise, deactivate Media Library Organizer, repeat your debugging steps and you’ll note the same behaviour.

    Media Library -> Some Category in Grid View: The file uploads, but does not render on the screen. async-upload.php returns a status of 200 with a bunch of json including what looks like the html that it should write to the screen, but it just doesn’t. There’s no error message, and no javascript errors or other messages are logged to the console.

    The uploaded attachment is not categorized on upload. Therefore, the category filter rightly shows attachments matching the chosen category i.e. it will not show the uploaded attachment. The attachment does, however, upload, and removing said category filter (i.e. accessing ‘All Media Categories’) will show said attachment.

    Also of note, is that the image is NOT tagged with the category I was currently browsing, when it really feels like it should be. That is, if I’m currently filtering by “Animals -> Farm Animals” and click “Add New”, I would fully expect my upload to go “into” the category/folder I was browsing.

    Correct. We may consider adding this feature to the next update. If so, expect to see this on Thursday 22nd October 2020 23:59 UTC, no sooner.

    >> The uploaded attachment is not categorized on upload. Therefore, the category filter rightly shows attachments matching the chosen category i.e. it will not show the uploaded attachment. The attachment does, however, upload, and removing said category filter (i.e. accessing ‘All Media Categories’) will show said attachment.

    This all makes sense how it works how it does now – thank you for the explanation!

    Uploading the image “into” the currently selected category would be a HUGE user experience improvement in multiple ways, in my opinion. I’ll cross my fingers and wait until later in the week. Cheers!

    Plugin Contributor wpmedialibrary

    (@wpmedialibrary)

    Added to 1.2.3, released Thursday 22nd October 2020.

    Closing.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Cannot add items in grid view’ is closed to new replies.