File Upload File Upload
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

File Upload

Started by digitalteck, December 07, 2008, 02:13:28 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

digitalteck

I am posting this because I have read all the other posts concerning file upload issue including  http://forum.coppermine-gallery.net/index.php/topic,24088.0.html

I also been fooling around with is for 3 weeks and cannot figure it out.

I am basically making this gallery for a Realtor to upload pictures and video's  so I don't have to teach this Realtor how to create webpages for pictures and videos I trying to make it simple for him.

I have also read and checked:

WE REPEAT -- CHECK YOUR PERMISSIONS ON THE /ALBUMS, /ALBUMS/USERPICS, AND /ALBUMS/EDIT DIRECTORIES.  ALL SHOULD BE 777 OR 755.

YES, WE WANT YOU TO CHECK THE PERMISSIONS OF EACH FOLDER EVEN IF YOU THINK YOU HAVE ALREADY DONE THIS. YES, WE MEAN IT. 

755 or 777 still will not work

I can only upload pictures, any other files will not work it say's 0 files uploaded.

Config settings will allow all files

I followed the 4.11.4 Upload troubleshooting page.

Those wanting to try it out as per 4.11.4 Upload troubleshooting page here is the link.

http://www.go2pahomes.com/multimedia/index.php     Username   Test User    Pass abc123

I created the Final index page and Realtor listings program they work. http://www.go2pahomes.com/index2.htm

I want to get this working before I remove the temp index page

Thanks John


Nibbler

You need to follow the troubleshooting instructions exactly. Set the number of URI upload boxes to 1. You have it set to 3. Uploading worked fine for me.

digitalteck

I set the conf by the instructions " not sure why it went back" Also the instuctions said URI to 0  See below I pasted it.

I have NO problem uploading picture I can do this all day.

I Can't Upload Video's 

I need some one to try to upload a video not a picture.

He needs this gallery more for video's than pictures.

I tried 10 other Galleries and this is the only one that easy enough for him with out teaching him how to build a webpage or imbed a script



    * Log in as admin
      Go to your coppermine page and log in as admin
    * Go to the config screen
    * Scroll to the bottom of the page
    * Expand the "Maintenance settings" section by clicking on it
    * Enable debug mode for everyone
      (set Enable debug mode to "Yes: Everyone")
    * Leave display of notices switched off
      (notices are only meant for developers. If you have idea what they mean, leave them off.)
    * Save the new settings by clicking on "Save new configuration"
    * Go to the "groups" panel
    * Set the upload form configuration for all groups to "Single file uploads only"
         1. set File upload boxes to "1" (1)
         2. set URI upload boxes to "0" (2)
         3. set No. of boxes to "fixed" (3)

# Save your new settings
(click on "Apply Modifications")

Then try to upload (using http uploads, even if you experienced troubles using another upload method) - you should get a more detailed error message that tells you what exactly goes wrong with your uploads. If the error message doesn't mean anything to you, search the support board for the error message you get.

Nibbler

Check upload_max_filesize, post_max_size in phpinfo.php.

digitalteck

Ok, I pasted my phpinfo.php below I don't see the upload_max_filesize, post_max_size  in there unless something is wrong.  While in my file manager I saw upload php. I do see something in the upload php that said  $max_file_size = $CONFIG['max_upl_size'] << 10;

I set my my max file upload in the config  in the  Files and thumbnails settings  and on the line Max size for uploaded files (KB) 5120=5mb and the video I was trying as a test was 3mb

>>>PHPINFO PHP<<<<

<?php
/*************************
 Coppermine Photo Gallery
 ************************
 Copyright (c) 2003-2008 Dev Team
 v1.1 originally written by Gregory DEMAR

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License version 3
 as published by the Free Software Foundation.
 
 ********************************************
 Coppermine version: 1.4.19
 $HeadURL: https://coppermine.svn.sourceforge.net/svnroot/coppermine/trunk/cpg1.4.x/phpinfo.php $
 $Revision: 4392 $
 $Author: gaugau $
 $Date: 2008-04-16 09:25:35 +0200 (Mi, 16 Apr 2008) $
**********************************************/

error_reporting (E_ALL ^ E_NOTICE);
define('IN_COPPERMINE', true);
define('PHPINFO_PHP', true);
require('include/init.inc.php');

$CONFIG['debug_mode']=0;

if (!GALLERY_ADMIN_MODE) cpg_die(ERROR, $lang_errors['access_denied']);

pageheader($lang_cpg_debug_output['phpinfo']);

ob_start();
phpinfo();
$string = ob_get_contents();
$string = strchr($string, '</style>');
$string = str_replace('</style>','',$string);
$string = str_replace('class="p"','',$string);
$string = str_replace('class="e"','class="tableb"',$string);
$string = str_replace('class="v"','class="tablef"',$string);
$string = str_replace('class="h"','class="tableh2"',$string);
$string = str_replace('class="center"','',$string);
ob_end_clean();

print '<div align="left" style="overflow:hidden;width:800px;text-align:left;">';
starttable('100%', $lang_phpinfo_php['php_info'], 1);
print '<tr><td class="tableb">';
print $lang_phpinfo_php['explanation'];
print '<br />';
print $lang_phpinfo_php['no_link'];
print '</td></tr>';
endtable();
print '<br />';


print $string;
print "</div>\n";


pagefooter();
ob_end_flush();

?>



phill104

You are looking at the file that shows your php settings, not your actual php settings.

Go to admin tools and click on the phpinfo button. DO NOT POST THE WHOLE RESULTS HERE as it is a security risk to do so.

Under the section "Configuration" you will see the settings Nibbler referred to.

Uploading big video files can cause problems if these settings are low. Unless you run the server yourself it is unlikely that you can change them but some hosts will let you.

You can always upload video files via ftp and then use batch add.
It is a mistake to think you can solve any major problems just with potatoes.

digitalteck

Ok I at work so I am limited to uploading my 3mb test clip which is at home. One of the programmers here at work said to check my PHP.INI on the server. It was at 2MB I changed it higher setting.  I found a 1mb flv loop that was in the cache when I went to his main page. I was able to upload that.

Luckhurst I will check the above when I get home I only have 1 hour for lunch. I will try to upload the 3mb test WMV again now I increased the upload limit. Hopefully it will work.

Feel free to upload a video to test I wil be finishing his site and the layout once I get this to work.

The server we run on has unlimited bandwidth and unlimted diskspace.

I let you know if i have any other issues.