Custom WordPress folder structure and file upload

Support General Custom WordPress folder structure and file upload

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #44287
    Aaron KesslerAaron Kessler
    Participant

    In my Bedrock WordPress Setup, ABSPATH points to /web/wp, stuff that belongs to wp-content reside in /web/app.

    In a field like
    [
    'name' => 'File',
    'type' => 'file',
    'force_delete' => true,
    'max_file_uploads' => 1,
    'upload_dir' => ABSPATH
    ]

    I can't define a folder outside ABSPATH. Is it possible that Meta Box will support a folder outside ABSPATH? For example due to an config constant? What do you think?

    #44288
    Aaron KesslerAaron Kessler
    Participant

    Ups, I did choose the wrong forum. Sorry, but edits are not possible.

    #44297
    PeterPeter
    Moderator

    Hello,

    No, Meta Box file field only works with the WordPress root folder ABSPATH. It doesn't work if you define the folder outside of WordPress root.

    #44305
    Aaron KesslerAaron Kessler
    Participant

    Hello Peter,

    that obvious. I should have added the sub-clause "in the future?" to

    Is it possible that Meta Box will support a folder outside ABSPATH?

    Please consider this as a feature request.

    #44309
    PeterPeter
    Moderator

    Hello,

    I will inform the development team to consider supporting this feature in future updates.

    Thank you.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.