Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I noticed you and I posted a blueimp upload issue on github at about the same time. I'm not sure I have a complete answer for you, but let me give you what I've found so far. Maybe it will help:</p> <p>I have been looking for a way to filter uploaded files by user from within an authenticated system. I posted github.com/blueimp/jQuery-File-Upload/issues/1578 . The plugin author suggested that I filter on the server side. I found github.com/blueimp/jQuery-File-Upload/issues/1149 which explains how to filter on the server side. I've done this and it works as far as uploading. I now have it setup where each user has a subfolder in the upload folder named their unique ID number which contains their images. So anyway, this is a dynamic way to set the upload path. Maybe you can use it.</p> <p>My current problem is that although I can confirm that the images are uploaded they are not visible in the download table. Please see github.com/blueimp/jQuery-File-Upload/issues/1587 .</p> <p>One attempt I've made to fix this included trying to pass options into the constructor:</p> <p>Here is my code in the blueimp index.php file:</p> <pre><code>$customer_path_files = dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR. 'files' . DIRECTORY_SEPARATOR . $uid . DIRECTORY_SEPARATOR; if (!file_exists($customer_path_files)) { @mkdir($customer_path_files); } $customer_path_thumbnails = dirname($_SERVER['SCRIPT_FILENAME']) . DIRECTORY_SEPARATOR . 'thumbnails' . DIRECTORY_SEPARATOR . $uid . DIRECTORY_SEPARATOR; if (!file_exists($customer_path_thumbnails)) { @mkdir($customer_path_thumbnails); } $options=array( 'upload_dir' =&gt; $customer_path_files, 'upload_url' =&gt; base_url().'blueimp/server/php/files/'.$uid.'/', 'thumbnail' =&gt; array( 'upload_dir' =&gt; $customer_path_thumbnails, 'upload_url' =&gt; base_url().'blueimp/server/php/thumbnails/'.$uid.'/', 'max_width' =&gt; 80, 'max_height' =&gt; 80 ) ); require('upload.class.php'); $upload_handler = new uploadHandler($options); </code></pre> <p>Hope something here helps,</p> <hr> <p>Addendum:</p> <p>I hope it does. BTW I read <a href="https://stackoverflow.com/questions/11056171/jquery-file-upload-plugin-dynamically-change-upload-path">Jquery File Upload plugin: Dynamically change upload path?</a>. That is <strong>exactly</strong> what I am trying to do. In case you are too, let me just say that I also tried to pass the session variable ( in my case the codeigniter variant ( $this->session->userdata('uid') ) in a hidden field to the plugin's index.php file, but just like in the post , it doesn't exist in index.php ( I think because , the upload button is not pushed for the repopulation or delete ). This is my first experience with ajax, but I think that the session ID must somehow be sent via Json. I'm trying to figure that out. It sounds like That's what Chris G did. If its any help I've posted the following question with some more details:</p> <p><a href="http://www.dynamicdrive.com/forums/showthread.php?p=279824" rel="nofollow noreferrer">http://www.dynamicdrive.com/forums/showthread.php?p=279824</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload