Jquery File Upload plugin: Dynamically change upload path?

后端 未结 1 1736
刺人心
刺人心 2020-12-17 07:13

I\'m trying to use the blueimp Jquery File Upload plugin for the project I\'m currently working on. It suits my needs perfectly, with one problem: I need to be able to chang

相关标签:
1条回答
  • 2020-12-17 07:51

    In your form, add a field like this:

    <input type="hidden" name="path" value="<?echo $_GET['path'];?>">
    

    And in your PHP where the file is uploading, just extract the path with:

    $path = $_POST['path'];
    

    Just put the path where it is specified in the PHP script.

    0 讨论(0)
提交回复
热议问题