| View previous topic :: View next topic |
| Author |
Message |
junoDev
Joined: 20 Feb 2007 Posts: 2 Location: Nottingham, UK
|
Posted: Feb 20, 2007 3:10 pm Post subject: Problems referencing post.cgi |
|
|
Hi,
I'm having trouble getting the form to post. The form is stored in httpdocs/, and the xupload files are stored in cgi-bin/xupload. Currently the action for the form is set to "/cgi-bin/xupload/upload.cgi?upload_id=" - which as far as i'm aware, should be correct.
When the page loads, the firefox javascript console reports an error saying "max_upload_files" is not defined in the xupload.js file. Then, when the form is posted, another javascript errors read "ext_allowed" is not defined and the form contents is not being posted.
I've been tinkering with this all day trying to get it work, but feel i am slamming my head repeatedly against a brick wall. Any help getting this sorted would be much appreciated!
Best Regards,
Andy |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Feb 20, 2007 3:18 pm Post subject: |
|
|
Looks there's an error in upload.cgi.
This URL should work for you: /cgi-bin/xupload/upload.cgi?mode=settings |
|
| Back to top |
|
 |
junoDev
Joined: 20 Feb 2007 Posts: 2 Location: Nottingham, UK
|
Posted: Feb 20, 2007 4:40 pm Post subject: |
|
|
Thank you for your help! the javascript errors are now gone!
My problem now is that an error is appearing on the pop-up, that reads "ERROR: You are not allowed to upload files". Naturally, I figured this would be a problem with access rights on the temporary and final destination folders set in the configuration file, but the problem is still occuring after these folders have been CHMOD'ed to 777.
Any clues? |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Feb 21, 2007 6:06 am Post subject: |
|
|
This is easy - you've set up wrong value for ip_allowed in config.
To allow all IPs use '^.*$' |
|
| Back to top |
|
 |
|