Open crisc2000 opened 8 years ago
i got it working - basically i moved ALL the files into a single directory except css i kept in a css subfolder. Updated all paths to files in index.html.
in file_upload.php I simply changed include line 1 to: require('Uploader.php');
Also - set the upload directory to a sub-folder tmp like so: $upload_dir = 'tmp'; (create it too)
that worked for me - now u can slice up the code into your own project.
basic_example shouldn't work out of the box ?
1) file_upload.php line 2: require(dirname(FILE) . '/../../Uploader.php'); isn't "Uploader.php" location in the "extras" folder?
so modified line 2: require(dirname(FILE) . '/../../extras/Uploader.php'); and fixed the first error
2) after fixed problem (1) , I set "debug: true" in index.html now when i try to upload a 100kb jpg I have this error in the console: [Uploader] Server response: {"success":false,"msg":"Upload directory does not exist"}
I have created a subfolder called "upload_files" in the "basic_example" folder. give it a chmod 777 to make it writeable for anyone.
yet the error remain, after progressbar is 100% , I get "Upload directory does not exist"
also checked my php.ini tmp upload folder path, then checked if is writeable, all is ok. tested Plupload http://www.plupload.com/ , on the same server, created an upload folder with chmod 777 and it's working perfect out of the box. No idea why Simple-Ajax-Uploader is not uploading files. My webserver is Apache, CORS is enabled in the httpd.conf on www folder. Using PHP 5.6. Browsers used: IE11, Firefox 38.