Note that there are some explanatory texts on larger screens.

plurals
  1. POjQuery File Upload, get and edit Data which is saved in DB
    primarykey
    data
    text
    <p><strong>Edited</strong></p> <p>With the <a href="https://github.com/blueimp/jQuery-File-Upload/wiki" rel="nofollow noreferrer">jQuery File Upload Documentation</a> I am able to save Data with the pictures in MySQL DB (see pic 1+2)</p> <p>Now where I'm stuck is how to retrieve the Data back. After the Upload I would like to show the pics with the Data from DB but there is nothing I can find how to do that.</p> <p>If anyone knows how to edit the json appending the DB data OR just how I can var_dump it just to push me in the right direction that would be awesome! I can not find where the json gets created. The json now looks like this:</p> <pre><code>{"files":[{ "name" : "02 (1).jpg", "size" : 12508, "type" : "image\/jpeg", "url" : "http:\/\/localhost:8888\/server\/php\/files\/02%20%281%29.jpg", "thumbnailUrl" : "http:\/\/localhost:8888\/server\/php\/files\/thumbnail\/02%20%281%29.jpg", "deleteUrl" : "http:\/\/localhost:8888\/server\/php\/?file=02%20%281%29.jpg", "deleteType" : "DELETE" }]} </code></pre> <p>and I would like to make it like:</p> <pre><code>{"files":[{ "name" : "02 (1).jpg", "size" : 12508, "type" : "image\/jpeg", "url" : "http:\/\/localhost:8888\/server\/php\/files\/02%20%281%29.jpg", "thumbnailUrl" : "http:\/\/localhost:8888\/server\/php\/files\/thumbnail\/02%20%281%29.jpg", "deleteUrl" : "http:\/\/localhost:8888\/server\/php\/?file=02%20%281%29.jpg", "deleteType" : "DELETE", "titleDB" : "Title1", "textDB" : "Lorem ipsum dolor...." }]} </code></pre> <p>I tried (like rAjA explained) and changed the following </p> <pre><code>require('UploadHandler.php'); $upload_handler = new UploadHandler(); $response_enc = $this-&gt;upload_handler-&gt;initialize(); </code></pre> <p>But than I get an error saying "JSON.parse: unexpected non-whitespace character after JSON data" and I googeld for that and I found information but there is nothing which helped me.</p> <p>Can anyone help me on this one or knows where I can find the Information? Thank you!</p> <p><img src="https://i.stack.imgur.com/UimqP.png" alt="pic"><img src="https://i.stack.imgur.com/Dmr2z.png" alt="pic2"></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. 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