Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

basic_example not working #174

Open
crisc2000 opened this issue Jul 7, 2016 · 1 comment · May be fixed by #197
Open

basic_example not working #174

crisc2000 opened this issue Jul 7, 2016 · 1 comment · May be fixed by #197

Comments

@crisc2000
Copy link

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

  1. 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.

@CamaroMan
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants