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/XUpl ... /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
XUpload - No uploaded files - Newbie help with config
No uploaded files - Newbie help with config
Last edited by hugeknot on Oct 30, 2006 1:49 pm, edited 1 time in total.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 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
Regards
Hugeknot
EDIT:
Oh! It has just started working!
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
Regards
Hugeknot
EDIT:
Oh! It has just started working!
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
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
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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.
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.
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
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!
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!
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm