SibSoft Ltd.
Development Services
software products
 RegisterRegister    SearchSearch   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
EZYWebhost - Cheap XUpload & XFileSharing 100% campatible hosting

AJAX upload progress bar

File sharing script
Upload Form Doing Nothing

 
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload
View previous topic :: View next topic  
Author Message
GeorgeC



Joined: 24 Oct 2006
Posts: 2

PostPosted: Oct 24, 2006 12:39 pm    Post subject: Upload Form Doing Nothing Reply with quote

Hi there,
I have just transfered my domain to a dedicated server and while Xuploadpro 2 worked perfectly on my old server I cannot get it to work on the new server.

The server is running Linux Fedora 5 and I have copied the file structure accross exactly as it was on the old server.

When I click to upload a file the page reloads but nothing happens.
I have CHMOD'ed all the .cgi files to be 755 and the upload and temp folders to be 777. I have also made the iframe visible on the upload page but there is no error message showing in it.

I have chacked the location of the pearl installation and (with my little knowledge of these things) can confirm it is in /usr/bin/ and is version 5.8.8.

I have included the recommended .htaccess file but to no effect.

I have noticed that although there is a cgi-bin folder in the domain folder there is also one in /var/www/ and by using a file_exists check in php can confirm that my upload file cannot find the upload.cgi file if I set the action to be "http://www.mydomain.com/cgi-bin/upload.cgi" but it can find it if I set it to "../cgi-bin/upload.cgi".

I hope that all this makes sence to someone and they have a suggestion before I go completely mad and give up web design for something a little less stressfull (like Iranian politician!!??).

Cheers in advance.
Back to top
View user's profile Send private message
PilgrimX182



Joined: 22 Mar 2006
Posts: 1107
Location: Undisclosed location

PostPosted: Oct 24, 2006 12:51 pm    Post subject: Reply with quote

Hmmm...http://www.mydomain.com/cgi-bin/upload.cgi really doesn't work ..ah, sorry, jokin' Very Happy But it would be usefull to have real URL(you can PM me it).

1) Have you updated paths in config?
2) Haven't you changed upload_form.html? enctype="multipart/form-data" is required in form tag for uploads.

You should use action="../cgi-bin/upload.cgi", that is correct.
Back to top
View user's profile Send private message Visit poster's website AIM Address
GeorgeC



Joined: 24 Oct 2006
Posts: 2

PostPosted: Oct 24, 2006 1:49 pm    Post subject: Reply with quote

Great Scot!! That was a speedy reply! (or was that time travel Doctor!!????)

I will PM you the real URL but to confirm:

1) Yes I have updated the paths (though I do wonder if the problem could be laying here!). The relevant part of the config file reads:

our $c=
{
# Directory for temporary using files
temp_dir => 'uploads',

# Directory for uploaded files
target_dir => 'temp',

# Path to the template using for upload status window
templates_dir => 'Templates',

# Log file. Set empty to disable logging
uploads_log => 'logs.txt',

# Allowed file extensions delimited with '|'
# Use '.*' to allow all extensions
ext_allowed => 'jpg|jpeg|gif|png|rar|zip|mp3|avi|txt|csv|bmp',

# Filename required mask (use standard perl regexp)
# Extension not using here (e.g. will use 'song_123' for 'song123.mp3')
# Leave empty if you don't need this custom filename validation
filaname_mask => '',

# Allow relative folder path for uploading files from HTML form ext_folder field
# Pathes with '..' are not allowed
# 0=no,1=yes. [Security Warning!]
allow_ext_folder => 0,

# URL to send all input values from upload page
url_post => 'http://www.mydomain.com/upload_callback.php',

# The link to redirect after complete upload
# redirect_link => '',

Upload callback is my custom callback page and is working correctly.
I have placed the upload and temp folders in the same place as the config file (/cgi-bin/xuploadpro/) and CHMOD 777 them.


2)Yes the upload form includes the "enctype="multipart/form-data". In full it reads "<form name="F1Upload" enctype="multipart/form-data" action="../cgi-bin/xuploadpro/upload.cgi?upload_id=" method="post" onSubmit="return StartUpload(this);">"

Cheers for the assistance and I will PM u in a mo!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SibSoft Ltd Forum Index -> XUpload All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group