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.

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: Code Snippet

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