blueimp/jQuery-File-Upload — Issue #957: save data to DB in the new index.php
Author: danciu888
Created: 2012-01-17 22:51:59+00:00
State: open

Hello,

I've read all the previous issues about saving data to sql and json errors, I've also read the numerous harsh replies that were given such as "the script was not intended for that" and so forth;

however,

I simply wanted to save into a DB the name of the uploaded pic, but every bit of PHP code I added to "index.php" (which handles the form) turned into a "SyntaxError: Unexpected token". I tried adding the code in the "handle_file_upload" function, at its end, just before returning the file object.

I would be really grateful if someone helped me, even though the script was intended for "enhancing the client-side file upload".

Thank you a million!