Uploader : upload to different path by id

Hi, I'm now using uploader to add/update via the form that get the value from item select, and now I have a question. Can I upload file to different folder/directory related to the id i selected?. sorry I'm new to this.

Tagged:

Comments

  • edited August 19

    Hello @savirusing ,
    In the described use-case, it is possible to do it by setting config.upload property:

      $$("upload").config.upload = `new_url/${id}`;
    

    Please check the following example: https://snippet.webix.com/wkrdxk12

  • Wow, thanks I will try this. I was uploading them to a folder and use post to rename it to another folder, but this method seem more professional. :blush:
    Thanks

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!