Hi,
i ve follow the tutorial,and this is what i got:
Progress:
ERROR: Failed to find flength file
any ideas how i can fix that?
best regards
Printable View
Hi,
i ve follow the tutorial,and this is what i got:
Progress:
ERROR: Failed to find flength file
any ideas how i can fix that?
best regards
One of the reason for this error is wrong path in
uu_default_config.pm
Can you post content of this file ?
hi,
here is the file:
package uu_default_config;
use strict;
use Exporter;
@uu_default_config::ISA = qw( Exporter );
@uu_default_config::EXPORT = qw($config);
use vars qw($config);
$config = {
config_file_name => 'uu_default_config',
temp_dir => '/public_html/template_c/',
upload_dir => '/public_html/video/',
unique_upload_dir => 0,
unique_upload_dir_length => 16,
unique_file_name => 0,
unique_file_name_length => 16,
max_upload => 20971520000,
overwrite_existing_files => 0,
redirect_after_upload => 1,
redirect_url => 'http://glissemagtv.com/upload.php',
redirect_using_js_html => 1,
redirect_using_html => 0,
redirect_using_js => 0,
redirect_using_location => 0,
delete_param_file => 1,
get_data_speed => 1000,
disallow_extensions => '(sh|php|php3|php4|php5|py|shtml|phtml|cgi|pl|plx| htaccess|htpasswd)',
allow_extensions => '(3gp)|(mp4)|(mov)|(asf)|(avi)|(flv)|(wmv)|(mpg)|( mpeg)|(mpeg4)|(xvid)|(divx)|(3gpp)',
normalize_file_names => 1,
normalize_file_delimiter => '_',
normalize_file_length => 32,
link_to_upload => 1,
path_to_upload => 'http://linux/web/vshare/video/',
send_email_on_upload => 0,
html_email_support => 0,
link_to_upload_in_email => 0,
email_subject => 'Uber File Upload',
to_email_address => '[email protected]',
from_email_address => '[email protected]',
};
1;
i just treid another video 12 mb and i got the error sayin that it can fine template_c,but the path is correct???!!!
weird
thx for your time
herve
Path is not correct
temp_dir => '/public_html/template_c/',
it should be some thing like
/home/user/public_html/template_c/
What path you set in include/config.php ?
basedir
ok i ve found the error:
/home/glisvcom/public_html
i fix that tomorrow, thx for your help!
hi,
working like a charm now :)
i ll check with cirtex what goes on with the connection reset :)
thxx a lot
2.5 is available now for upgrade?
best regards
hi,
now the progress bar works like a charm (uploaded a 32 mb vid) but now it s another major bug that i have.
Once the video is uploaded i get redirected to the login page!!! In wich i can t login cause i am already logged in.....
I login after as admin for see where is the video but it s nowhere,not in the innactive list,not playin,no mail received sayin that i got a new video upload, any idea how fix that?
I ve set redirect to "0" but then i get a page with the filename and that s it and no video brodcasted or as inactive
best regards
herve
For redirect to login page after upload, see
http://docs.buyscripts.in/wiki/After_up ... login_page
If you can get it fixed, post content of the two files.
hi admin,
all i have now is a blank white page with as url:
http://www.glissemagtv.com/upload.php?rnd_id=1pySGC2e
config.php:
$language = "en";
$config = array();
$config['ffmpeg'] = "/usr/bin/ffmpeg";
$config['mplayer'] = "/usr/bin/mplayer";
$config['mencoder'] = "/usr/bin/mencoder";
$config['flvtool'] = "/usr/bin/flvtool2";
$config['basedir'] = "/home/glisvcom/public_html";
$config['baseurl'] = "http://www.glissemagtv.com";
include($config['basedir'] . "/include/vshare.php");
default_config.pm
package uu_default_config;
use strict;
use Exporter;
@uu_default_config::ISA = qw( Exporter );
@uu_default_config::EXPORT = qw($config);
use vars qw($config);
$config = {
config_file_name => 'uu_default_config',
temp_dir => '/home/glisvcom/public_html/template_c/',
upload_dir => '/home/glisvcom/public_html/video/',
unique_upload_dir => 0,
unique_upload_dir_length => 16,
unique_file_name => 0,
unique_file_name_length => 16,
max_upload => 20971520000,
overwrite_existing_files => 0,
redirect_after_upload => 1,
redirect_url => 'http://www.glissemagtv.com/upload.php',
redirect_using_js_html => 1,
redirect_using_html => 0,
redirect_using_js => 0,
redirect_using_location => 0,
delete_param_file => 1,
get_data_speed => 1000,
disallow_extensions => '(sh|php|php3|php4|php5|py|shtml|phtml|cgi|pl|plx| htaccess|htpasswd)',
allow_extensions => '(3gp)|(mp4)|(mov)|(asf)|(avi)|(flv)|(wmv)|(mpg)|( mpeg)|(mpeg4)|(xvid)|(divx)|(3gpp)',
normalize_file_names => 1,
normalize_file_delimiter => '_',
normalize_file_length => 32,
link_to_upload => 1,
path_to_upload => 'http://glissemagtv.com/video/',
send_email_on_upload => 0,
html_email_support => 0,
link_to_upload_in_email => 0,
email_subject => 'Uber File Upload',
to_email_address => '[email protected]',
from_email_address => '[email protected]',
};
1;
i am despaired :'(
thx for your priceless time
Yes, Admin is great, any time he can spare to help you will definately assist. ADMIN ROCKS!!!! HE SAVED MY SITE!!!!
nocomp, if you can PM me your web site FTP and vshare admin login details, i can check your installation.
hi admin, i saw you registred on my website, tell me if you don t have my ftp details anymore in case of needed.
best regards
thx for your priceless time
herve
Test upload do not worked. It seems some server related problem. Just upgrade to latest version and see if that works. If not send me PM with login details.
oki i do so
thxxx
hi,
well just upgraded to 2.5
http://www.glissemagtv.com
as you can see it s a true nightmare,and can t even log in as admin.
i guss i ll need your help on that one.
best regards
herve
I use vShare 2.4 and getting this error:
ERROR: Failed to mkdir /path/to/templates_c/: No such file or directory
What is wrong?
hi
certainly your path to the dir,nothing else ;)
check the file you mod in cgi dir
Looks like this:
$config = {
config_file_name => 'uu_default_config',
temp_dir => '/path/to/templates_c/',
upload_dir => '/home/myplazehere/public_html/video/',
EDIT: I GOT IT FIXT.
I set: temp_dir /home/myeplazehere/public_html/templates_c/ insted of temp_dir => '/path/to/templates_c/',
should be workin now,no?
Yes, its working now :)Quote:
should be workin now,no?
I have my board up and running on Dreamhost. vShare is installed and running. But users upload multiple copies of videos because they are not notified that the upload has begun. I am attempting to activate the progress bar. The 505/404 errors occur for me. I have rechecked all permissions and they are at 777. I am sure the problem is my upload and temp directory paths in the cgi folder.
Does anyone know for sure what they should look like for Dreamhost?
This is what the paths look like for what I see when using FTP.
/myroot/rootofmywebsite/allthevsharefiles/cgi-bin/uudefault_config.pm
Does the import folder path on my server help with the answer?
/home/.bobby/myusername/mywebsite.net/templates_c/import
Thanks
.pl files need 755 permission. If perl is working, you will see page like
http://video.bizhat.com/cgi-bin/uu_upload.pl
When you go to the uu_upload.pl on on your site.
Yes, I saw the same error on my site as I saw when I clicked your link. However I went through and checked all the permissions again. Found one not right. Changed and then I saw the upload progress bar.
OK, I thought everything was working fine but the file appears to upload and goes nowhere. So now I need to figure out where the upload is going. The paths look right but something is wrong. Turn off the progress bar in settings and uploads do work.
After an upload the upload page was loading again so now after a change the redirect url is 'http://www.mywebsite.net/index.php', Since this works I am not sure why the upload path does not work as it is identical except for video instead of index.php.
BTW, my import folder and import video feature do not work yet either.
Again, I am using Dreamhost as my provider.
More on my Progress Bar problems... Nobody has offered any help so I had to work on it myself...
I knew the problems were all path related, but because I am on Dreamhost I was not sure what to change. The solution really came from viewing the import folder path and this gave me the full path on Dreamhost's servers. So now my uudefault_config.pm file shows an upload dir of /home/.bobby/myusername/myvsharedir/video/
And the real goofy one is the redirect_url which is ../upload.php
Of course the path_to_upload has the full "http://www.mywebsite/video/"
Once all these paths were correct my other problem of an error because of uploading filenames with spaces was corrected! Users can now upload files with many spaces and they can have the progress bar and information displayed to them during the upload. There is a 3 or 4 second delay with a blank screen showing immediately after the upload but then they are given the standard confirmation screen. During this delay there is a massive processor surge as something like a java script puts a big load on the user's terminal.
So there is progress. I am still working on things such as importing videos through admin but that will come.
Hallo
I enable the bar but I receive this error
"Cannot find flenght file"
What is it?
Quote:
Originally Posted by robaldo
This is mostly caused by wrong configuration or server block access to find file.
Use real path in the configuration files, not symlink.
http://docs.buyscripts.in/wiki/Upload_Progress_Bar
http://uber-uploader.sourceforge.net/?section=flength
I added at the end
<IfModule mod_security.c>
SetEnvIfNoCase Content-Type \
"^multipart/form-data;" "MODSEC_NOPOSTBUFFERING=Do not buffer file uploads"
</IfModule>
<IfModule mod_gzip.c>
mod_gzip_on No
</IfModule>
I checked /incluedes/config.php and use real path
$config['basedir'] = "/home/CPANELNAME/public_html";
$config['baseurl'] = "http://www.MYSITE.com";
but still having this error.. What else can I check?
The host is hostonnet, and the other script I installed in another domain (2.4) works fine
When I press Upload nothings happen. no progress bar or .....
this is my content of uu_defualt_config.pm
package uu_default_config;
use strict;
use Exporter;
@uu_default_config::ISA = qw( Exporter );
@uu_default_config::EXPORT = qw($config);
use vars qw($config);
$config = {
config_file_name => 'uu_default_config',
temp_dir => $ENV{'DOCUMENT_ROOT'} . '/templates_c/',
upload_dir => $ENV{'DOCUMENT_ROOT'} . '/video/',
unique_upload_dir => 0,
unique_upload_dir_length => 16,
unique_file_name => 0,
unique_file_name_length => 16,
max_upload => 20971520000,
overwrite_existing_files => 0,
redirect_after_upload => 1,
redirect_url => ''http://www.tubeirani.com/upload.php',
redirect_using_js_html => 1,
redirect_using_html => 0,
redirect_using_js => 0,
redirect_using_location => 0,
delete_param_file => 1,
get_data_speed => 1000,
disallow_extensions => '(sh|php|php3|php4|php5|py|shtml|phtml|cgi|pl|plx| mp3|htaccess|htpasswd)',
allow_extensions => '(3gp)|(mp4)|(mov)|(asf)|(avi)|(flv)|(wmv)|(mpg)|( mpeg)|(mpeg4)|(xvid)|(divx)|(3gpp)',
normalize_file_names => 1,
normalize_file_delimiter => '_',
normalize_file_length => 32,
link_to_upload => 1,
path_to_upload => 'http://linux/web/vshare/video/',
send_email_on_upload => 0,
html_email_support => 0,
link_to_upload_in_email => 0,
email_subject => 'Uber File Upload',
to_email_address => '[email protected],[email protected]',
from_email_address => '[email protected]',
};
1;
Hello,
I'm using the upload meter and it works great for me. My problem is that I want to change a few very basic things.
I have a cookie set for 'company' and another for 'oos_number'.
I have updated the uu_default_config.pm file so perl reads these cookies so they can be used in the path for where to store the file and for re-directing after the upload completes.
When I use the script with the following changes below, the progress meter doesn't show up.... it does however upload the file to the correct folder and it also re-directs to the correct place.
I have tried uploading any size of file from 19k to 110MB. The file uploads but the progress meter doesn't show.
If I remove my customizations and revert to the original, the progress bar shows again.
Please take a look at me uu_default_config.pm file below and see if you have any idea on what is wrong here.... I've spent hours on it.
Thanks
Marcel.
package uu_default_config;
use strict;
use Exporter;
#HERE ARE THE LINES I'VE ADDED
# Read Cookies set by PHP to determine file path
use CGI qw(:all); # I ADDED THIS LINE
my $da = new CGI;
my $company = $da->cookie('company');
my $oos_number = $da->cookie('oos_number');
@uu_default_config::ISA = qw( Exporter );
@uu_default_config::EXPORT = qw($config);
use vars qw($config);
$config = {
config_file_name => 'uu_default_config',
temp_dir => '/tmp/',
upload_dir => $ENV{'DOCUMENT_ROOT'} . '/uploads/' . $company . '/' . $oos_number . '/',
unique_upload_dir => 0,
unique_upload_dir_length => 16,
unique_file_name => 0,
unique_file_name_length => 16,
max_upload => 124857600,
overwrite_existing_files => 0,
redirect_after_upload => 1,
param_dir => '/tmp/',
pass_param_dir => 0,
redirect_url => '/review.php?oos_number=' . $oos_number,
redirect_using_js_html => 1,
redirect_using_html => 0,
redirect_using_js => 0,
redirect_using_location => 0,
get_data_speed => 1000,
disallow_extensions => '(sh|php|php3|php4|php5|py|shtml|phtml|cgi|pl|plx| htaccess|htpasswd)',
allow_extensions => '(jpg|jpeg|gif|bmp)',
normalize_file_names => 1,
normalize_file_delimiter => '_',
normalize_file_length => 48,
link_to_upload => 0,
path_to_upload => 'http://'. $ENV{'SERVER_NAME'} . '/uploads/' . $company . '/' . $oos_number . '/',
send_email_on_upload => 0,
html_email_support => 0,
link_to_upload_in_email => 0,
email_subject => 'Uber File Upload',
to_email_address => '[email protected],[email protected]',
from_email_address => '[email protected]',
log_uploads => 0,
log_params => 0,
log_dir => '/tmp/uu_logs/',
};
1;
ERROR: Failed to mkdir /path/to/templates_c/: No such file or directory
the site is http://www.MalaysiaYouTube.com
Yea, I got his error.
My Questions are:
#1:On Cpanel Servers, it will be
/home/YOUR-CPANEL_USERNAME/public_html/templates_c/
I am using dreamhost and they do not use cppanel....HOW DO I GET THAT FILE?
Please help....I can PM you to take a look
Never mind...........I got it fixed.............tanksssssssssssss
thanks
Hey, Can somone help me. You see my videos upload and everything, But the process back just dont work. It just says "Initializing Progress Bar" . Don't move from that. Im sure I haver everything currect. At least I think Im sure. I has v2.5 and process bar worked great. Since I upgraded some stuff did not want to work anymore. Can someone help me?
Hello
I'm french so excuse me for my english.
I dowloaded 2.6 version.
I enable Upload Progress Bar and i have this msg "Failed To Find Flength File"
I saw http://uber-uploader.sourceforge.net/?section=flength but always the problem.
I created .htacess chmod 644 etc etc .. But nothing..
Who can help me please i don't understand why !!
Iam on HostOnNet.com
Thx
Chmod 755 all files in cgi-bin.Quote:
Hello
I'm french so excuse me for my english.
I dowloaded 2.6 version.
I enable Upload Progress Bar and i have this msg "Failed To Find Flength File"
I saw http://uber-uploader.sourceforge.net/?section=flength but always the problem.
I created .htacess chmod 644 etc etc .. But nothing..
Who can help me please i don't understand why !!
Iam on HostOnNet.com
Thx
regards
Quote:
Originally Posted by admin
You need to change the following line:
$base_dir = '/home/user/vshare';
Note: I forgot what it originally was but it should the the path to where vshare is on the server.
I'm not a newbie on this as I have 3 vshare servers with the bar working.... However.
This new site hosted on APT is not working.
When a user tries to upload a file the server tries to download the file called uu_upload.pl to the user's computer. I have checked persmissions and set them many times to 755. I have replaced the files using binary or course from original and from my other servers that are working. I have contacted help at APT and the answer is to replace the defective files.
I know that testing it by going to it directly should just show a grey screen with an error message if it is working. But when I do that it just downloads the file again.
Notes: If I turn off the progress bar uploads work as they should. Sorry, it is a private site so I cannot post the url but I would be happy to talk to admin. This is an addon domain under a main account. A second addon domain on the same server works fine! Huh?
sounds like a "mime type" problem.
Try uploading the same .htaccess and php.ini from the sites where you know this works and have APT check the mime type settings for that particular directory where the add-on domain is and that the "add-on" thing is working and that it's not seeing it as a sub-domain.
All else fails, upload all the files except for the template files (especially if you've made customizations) and make the obvious changes to the configs for the proper domain name and locations...and also compare what the ADMIN settings are in your working sites to the "broken" one...I had 2 sites on the same server one was an add-on but I had the wrong path to php in the admin control panel under site settings which mucked up the second site. Once I repeated the settings in the admin panel to what was on an already working site, everything went a lot better.
but my experience is that anytime a page tries to "download", it's due to mime-type. For instance, if the server doesn't have php working and a person tries to access a .php page, it tries to download the .php instead of display the page in their browser.
OK it is now resolved. However I cannot say what it was as I gave APT a user account and let them work on it. When it was done it worked perfectly and the other user accounts and videos were still there. So the end result is that I have two addon domains hosted under another account. Both addon domains work independant of each other but they work correctly. APTHost worked everything out here.
I asked what it was that was fixed but they avoided the question and just thanked me for giving them the update. I think the next site I put there I will just pay them and then modify it once it is running.
I bet it was a mime-type problem....
Good morning
If I understand a person arrives make it work