No uploaded files - Newbie help with config

XUpload related questions

Moderator: admin

Message
Author
hugeknot
Posts: 6
Joined: Oct 30, 2006 12:22 pm

No uploaded files - Newbie help with config

#1 Postby hugeknot » Oct 30, 2006 12:44 pm

Hi
I am a bit green with all this scripting stuff.
I have tried to install the free version of XUpload and my problem is that the progress bar says "Completed" and yet there are no files in my temp or uploaded folders. I have CHMODed them according to the sticky thread in this forum.

I have also read all the other threads about the same problem!
I have made the suggested adjustments to the .htaccess file to prevent buffering.

I have a feeling it maybe something to do with the hierachy of my directory files:
cgi-bin:
XUpload-2.5 (folder with all the cgi files template folder etc (exactly as downloaded))
music (folder for uploaded files)
temp (temporary folder)

Also the install instructions told me to change THREE versions of URL-TO-SCRIPT and I only found 2!

My perl version is 5.8.4

Here is my config file:
package XUploadConfig;

BEGIN
{
use Exporter;
@XUploadConfig::ISA = qw( Exporter );
@XUploadConfig::EXPORT = qw( $c );
}

our $c=
{
# Directory for temporary using files
temp_dir => 'http://WEbsite.com/cgi-bin/temp',

# Directory for uploaded files
target_dir => 'http://WEbsite.com/cgi-bin/music',

# Path to the template using for upload status window
templates_dir => 'http://musicollaborate.com/cgi-bin/XUpload-2.5/Templates',

# Allowed file extensions delimited with '|'
ext_allowed => 'mp3|mp4|wma|wav|midi',

# The link to redirect after complete upload
# This setting can be submitted from HTML form, then it will have priority
redirect_link => 'http://WEbsite.com/upload_form.html',

# Max length of uploaded filenames(without ext). Longer filenames will be cuted.
max_name_length => 64,

# Type of behavior when uploaded file already exist on disc. Available 3 modes: Rewrite/Rename/Warn
copy_mode => 'Rename',

# Maximum total upload size in Kbytes
max_upload_size => 70000000,

# Time to keep temp upload files on server, sec (24 hours = 86400 seconds)
temp_files_lifetime => 86400,

# CSS names
styles => { 'black' => 'black.css',
'hitech' => 'hi_tech.css',
'aqua' => 'aqua.css',
'tiny' => 'tiny.css',
'contrast'=> 'contrast.css',
},

# Template names
templates => { 'simple' => 'simple.html',
'hitech' => 'hitech.html',
'nice' => 'nice.html',
},
};

1;


My upload form is
http://www.WEbsite.com/upload_form.html

Sorry that I have had to start a new thread with an old problem, but nothing was working for me.

Thanks in advance
Hugeknot
Last edited by hugeknot on Oct 30, 2006 1:49 pm, edited 1 time in total.

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#2 Postby PilgrimX182 » Oct 30, 2006 12:50 pm

Lol. Just use absolute server paths instead of URLs.
e.g.: temp_dir => '/home/hugeknot/cgi-bin/temp',

hugeknot
Posts: 6
Joined: Oct 30, 2006 12:22 pm

#3 Postby hugeknot » Oct 30, 2006 1:24 pm

Hey thanks for a quick reply,
But still the same result! I get an instant "Upload complete" message and no files are appearing in either directory.

I have tried a few different configurations of the direct file
/home2/hugeknot/public_html/cgi-bin/temp
/home/hugeknot/cgi-bin/temp

Still no joy :cry:

Regards
Hugeknot

EDIT:
Oh! It has just started working!

hugeknot
Posts: 6
Joined: Oct 30, 2006 12:22 pm

#4 Postby hugeknot » Oct 30, 2006 2:02 pm

OK thanks, I had some faliures and some successes - unfortunately I don't know what I did to create either!

Now, I am wondering if it is possible for users to view the files that are in my music directory so they can access a download link?

And can it all be done on the same page "upload_form.html"?

Thanks
Hugeknot :)

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#5 Postby PilgrimX182 » Oct 31, 2006 6:39 am

I think you used correct paths at the end :)

The most easy & fast way is to put your music folder to htdocs and the songs will be available on http://musicollaborate.com/music, also read about .htaccess file format to allow directory view or limit access by login/password.

If you wanna show files on upload_form.html you can use the method above and put that page to iframe, or write your own PHP script that will read the music folder contents and display it.

hugeknot
Posts: 6
Joined: Oct 30, 2006 12:22 pm

#6 Postby hugeknot » Oct 31, 2006 10:44 pm

Thanks Man

Yeah I didn't understand a lot of what you are saying there, but I am going to google some of the words and see what I come up with.

cheers
Hugeknot

hugeknot
Posts: 6
Joined: Oct 30, 2006 12:22 pm

#7 Postby hugeknot » Oct 31, 2006 11:05 pm

Hi
Is it possible to put the "music" directory on Public HTML ?
I thought it has to go into the cgi-bin. I tried it but had a configuration error!

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#8 Postby PilgrimX182 » Nov 01, 2006 6:40 am

Ofcourse it is possible. But only music folder, not .cgi scripts. That's what I meant to put to htdocs folder. Make sure you chmoded it to 777, put correct path in config.

hugeknot
Posts: 6
Joined: Oct 30, 2006 12:22 pm

#9 Postby hugeknot » Nov 02, 2006 9:54 am

Many thanks for all your help
OK
great I have an upload system and a download system!

I just have to work out how to configure the other fields in the upload form.
I have included a "username" and "songname" text field, I have been looking on the upload.cgi to try and find the field info, but I am not sure. Any help?

I'm off to google!
8)

User avatar
PilgrimX182
Posts: 2181
Joined: Mar 22, 2006 1:39 pm
Location: UFO Lab
Contact:

#10 Postby PilgrimX182 » Nov 03, 2006 7:07 am

How do you wanna use these fields? If you add them to the form in upload_form.html, they will be POSTed to url_post from your config, then you can add song to your database or something. Other way there's no effect in extra form fields.


Return to “XUpload”

Who is online

Users browsing this forum: No registered users and 0 guests