This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Files saved in field dependant folder


  1. Edken
    Member

    Hi, is it possible to have files saved into sub-folders which would take their name from one of the fields of the same form?
    This would make things much more organised on my server.

    Thanks in advance for any help that can be given

    Posted 13 years ago #
  2. yuniar

    I'm not sure if I understand this correctly.
    At this moment, all the files will be stored into "data/form_X/files" folder.

    How would you like the file being saved?


    MachForm Founder

    Posted 13 years ago #
  3. Edken
    Member

    It would be awesome if they could be saved in "data/form_X/files/NEW_FOLDER_TAKING_ITS_NAME_FROM_FIELD_INPUT"

    So that each submission saves its uploaded files into a new folder that would take its name from a field such as "username" which is currently set as a normal text field, but I soon hope to add the code you have sent me to only allow one word entries to that field.

    Hope that makes sense, if not let me know and I will try and explain myself better.

    Thanks.

    Posted 13 years ago #
  4. yuniar

    Ah.. I see.

    It is possible to modify the current MachForm so that it would create a COPY of the uploaded file and put them into a new folder as your requirement above.

    If this is okay for you, please let me know the URL to your form and which field you would like to use as the folder name.

    You can send it via email if you don't want to post the URL to your form here.


    MachForm Founder

    Posted 13 years ago #
  5. DavidB
    Member

    I am also looking for the code for the above question.
    Please let me know what i need to do.

    Thanks
    David

    Posted 13 years ago #
  6. yuniar

    David, please contact us directly and we'll send you the files.
    You can use the contact form below or mail us here: customer.service [at] appnitro.com


    MachForm Founder

    Posted 13 years ago #

RSS feed for this topic

Reply