[Solved]: Another "No file was uploaded" [Solved]: Another "No file was uploaded"
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

[Solved]: Another "No file was uploaded"

Started by wanttobefree, August 30, 2009, 05:09:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

wanttobefree

Hello,
I have the error "No file was uploaded [...] File: db_input.php - Line: 361" on my gallery when I try to upload a file.

I've already read the troubleshooting and the other posts, but without any result: it isn't a problem of the server, or of the php, because the upload of the same file with another script works fine.

Trying to solve the problem I found out that if I write: echo($_FILES['userpicture']['tmp_name']); in one of the early lines of db_input.php, the script writes the name of tmp directory, so the file has in fact been uploaded.
Instead, If I write this code on line 361, it writes anything, so I guess that the directory has been deleted and the file has gone...

In particular, trying many times I found out that if I write echo($_FILES['userpicture']['tmp_name']); before line 23, that is:

23 require('include/init.inc.php');
24 require('include/picmgmt.inc.php');
25 require('include/mailer.inc.php');
26 require('include/smilies.inc.php');


It write the directory name, instead if I write it after line 26, it doesn't write the directory name. So I think that this problem is caused by these scripts that are required in lines 23-24-25-26.

How to solve?

Thanks!

Joachim Müller

Quote from: wanttobefree on August 30, 2009, 05:09:06 PM
I've already read the troubleshooting and the other posts
Obviously not. Do exactly as suggested in the docs, section "asking for support on upload issues".

wanttobefree

QuoteWhen asking for support on the coppermine forum, post a link to your site and a test user account (the test user mustn't be in the admin group!) with upload privileges, with the above mentioned settings in place - this way, supporters can see the error messages as well. Do not post debug_output unless requested. If you want fast results, you should disable admin approval for the group the test user is in, so supporters can tell instantly what is wrong without needing to double-check.

Oh excuse me, I haven't read that part indeed  ::)
So this is the url of the photogallery on my site: http://www.webdreadlocks.altervista.org/album-foto/
This is the test account:
User: prova
Password: test

Thank you

Nibbler

Update your gallery. You have the exact problem 1.4.25 was released to fix.

wanttobefree