alexvreg Posted October 17, 2013 Report Share Posted October 17, 2013 As you know you can not specify a destination folder in the command "Add File" to WebApi HTTP post request, but you can specify a folder in the "Add File" dialog box in WebGUI.If you look java script code on the submit button in the "Add File" dialog box in WebGUI, you can see the http-query parameters. There used parameters "download_dir" and "path". Is it possible to use these parameters in the my WebApi http post request to WebGui? Link to comment Share on other sites More sharing options...
Ultima Posted November 24, 2013 Report Share Posted November 24, 2013 Yes. The download_dir variable is a 0-based index into the list of directories returned by an ?action=list-dirs request to the WebUI backend. See:https://github.com/asze/webui/blob/webui-vanilla/webui.js#L2219https://github.com/asze/webui/blob/webui-vanilla/main.js#L767 Link to comment Share on other sites More sharing options...
alexvreg Posted December 6, 2013 Author Report Share Posted December 6, 2013 Thanks. I now write a tools based on this feature. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.