coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Upload => Topic started by: Fking on December 13, 2004, 12:09:15 AM

Title: can upload only in single file upload mode....i need better option for my users
Post by: Fking on December 13, 2004, 12:09:15 AM
i was getting the "0 uploads successfull" error, did a search on the forum and found that i have to switch to single file mode upload, ok i did it and it works ok now.....

but i need to provide my users the options to upload many files at once.....how to make it to work with the multiple file upload form, or even better, the .zip upload mode?
Title: Re: can upload only in single file upload mode....i need better option for my us
Post by: kegobeer on December 13, 2004, 12:34:38 AM
Have you tried the other upload options (multiple file uploads only, etc) with different numbers of each?
Title: Re: can upload only in single file upload mode....i need better option for my us
Post by: Joachim Müller on December 13, 2004, 08:33:33 AM
...and you have started a different thread about zip uploads, do not double-post.

Joachim
Title: Re: can upload only in single file upload mode....i need better option for my users
Post by: Fking on December 13, 2004, 02:35:11 PM
multiple file uploads and file-URI does not work, i get the same error
only URI isn't acceptable for my users

so i need to make work the multiple file uploads
Title: Re: can upload only in single file upload mode....i need better option for my us
Post by: kegobeer on December 14, 2004, 02:47:59 AM
Enable debug and notices, enable multiple uploads, and post a test user/password with normal privileges.
Title: Re: can upload only in single file upload mode....i need better option for my users
Post by: bwarner on January 05, 2005, 07:08:04 PM
Well, I found the answer to the problem, 10 minutes after posting.

Those of you having problems with this, need to place php.ini in your main htdocs directory, or whatever your main directory is called.

You can pick up a clean copy of php.ini here:
http://support.powweb.com/index.php?category=PHP/MySQL&topic_id=57

Simply click "Click here" ... Copy and paste it into notepad and then save as php.ini

Now, you will need to go in and edit 3 lines ...

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = /www/u/username

; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


What we did here was take away the comment markers on the lines.  You also need to change upload_tmp_dir = /www/u/username.  To whatever your server is ... You will need to know this.  Once you have completed this, save this file to your main directory.

Now since the .php file will be accessible to everyone, you should also edit you .htaccess file.
Include the line:
<Files php.ini>
order allow,deny
deny from all
</Files>

This should work, the reason the servers shut down upload access was because of the worm.  They were using a php exploit.
Title: Re: can upload only in single file upload mode....i need better option for my us
Post by: Joachim Müller on January 07, 2005, 11:54:47 AM
To clarify: above mentioned solution of course only is valid for users who are hosted with the same webhost you (bwarner) are with...

Joachim