How can I mannually save uploaded image or file before redirect

Support MB Frontend Submission How can I mannually save uploaded image or file before redirectResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #27907
    calpaqcalpaq
    Participant

    Hi Support,

    I am developing a solution to upload the image or document for a user using mb frontend plugin for our client, can you please tell me a method for how to save the image fields and file fields instead of auto saving.

    Regards,
    Calpaq

    #27918
    Long NguyenLong Nguyen
    Moderator

    Hi Calpaq,

    Can you please give more details? Do you want to allow users to upload images without creating a post?

    #27927
    calpaqcalpaq
    Participant

    Hi Long,
    I have a form for users to fill up having some personal information and also want them to upload their documents with that, so basically I am creating a custom post type post and also want users to upload the documents attached with the post, but I want to handle it with the mannual saving on the client server there are some problems that was not allowing to save the data automatically I have mannaged to save the text data posted by fields but not able to save the uploaded docs/images can you give help me in this with some example?

    Thanks & Regards,
    Calpaq

    #27946
    Long NguyenLong Nguyen
    Moderator

    Hi Calpaq,

    If you want to save the file upload in a custom folder, please use the field type file. If you want to do something before saving the post, please take a look at some hooks of the frontend form https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1

    I hope that helps you with your case.

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