Upload Error - Invalid file

Permalink
Hi everybody,

I got an error today when I tried to upload a file using "single file" mode in Dashboard - File Manager. The error that shows up is "Invalid file". The file I´m trying to upload is a regular jpg file by the size of 40 KB.

I double checked my directory and subdirectory permissions and even changed them to 777 but this didn't change a thing...

I managed to upload files a week ago though, so setting must have been ok (even though I can't remember that I did anything bad to my system). The only thing that I can remember doing that might have an influence is that I installed coppermine image gallery on my system and I had to do some minor changes to php.ini

My system is an up-to-date ubuntu.

Can anybody give me directions on how to further track this error? Or does somebody even has a solution for me?

Thanx in advance for your time an effort
Stefan

P.S.
I'm using 5.3.2

 
ryan replied on at Permalink Reply
ryan
do other files work?
How's about the file name is that clean, no spaces or special chars?
stefanK replied on at Permalink Reply
Filename is simple (6 char long) and doesn't include any "unusual" characters...

What I found out so far is that I obviously have an upload problem. At least it looks like it to me because if I upload a file manually using scp and then try to integrate it using file manager - add incoming everything works perfect.

I'm pretty sure that this is not a bug in concrete 5. I suppose that I have a configuration issue. Anyway, besides having a workaround now I would like to get the upload feature up and running again.

Does anybody has direction on howto configure php.ini? I guess the cause of my problem is there.

Stupid me, I didn't write down the changes I've done :-(.
stefanK replied on at Permalink Reply
Sometimes solutions can be that simple ;-)

I had to add /tmp to my open_basedir.

I fould this out because I tried to download a new feature and got php error messages that leaded me in this direction.

I hope these notes can of value to anybody else.

I'm happy. Great application!!!
brownrisg replied on at Permalink Reply
brownrisg
I am having the same problem.. But I don't understand what you mean by open_basedir. is this in the php.ini file...

Please explain...

thanks.
stefanK replied on at Permalink Reply
Hi,

depends. My installation is on an apache system which is supporting virtual hosts. I therefore can find the value in my virtual host config file.

Here is what my file looks like:
<VirtualHost *:80>
ServerAdmin admin@test.com
ServerName test.test.com

DocumentRoot /home/to/my/httpdocs/
php_admin_value open_basedir /home/to/my/httpdocs/:/tmp
....
</VirtualHost>

Anyway, this should be easy to google.

Regard
stefanK