[Solved] Can't upload files

Phoca Download - download manager
baldguy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Jun 2009, 22:14

[Solved] Can't upload files

Post by baldguy »

I am trying to upload a pdf file, 53k in size, and I get the following error:
This file type is not supported (or there are some restrictions on the server).
I have checked my PhocaDownload configuration and my Joomla 1.5.11 configuration, and both allow pdf files to be uploaded.

I thought it might be permission issues, so I chmod the phocadownloads folder from 755 to 777, but that didn't work.

The upload_max_filesize on the server is 7MB, so there is plenty of room to work.

I tried uploading other files, both pdf and other formats, and got the same error, so I'm not able to upload anything.

It worked just fine on my localhost, but isn't on the production server.

Any ideas what I might have overlooked?
Last edited by baldguy on 15 Jun 2009, 00:35, edited 1 time in total.
baldguy
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 14 Jun 2009, 22:14

Re: Can't upload files

Post by baldguy »

Got it.

I had to change some things in the configuration.php file.

I changed $temp_path and $live_site, and it worked.

I don't know which one was the culprit, but it works now.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] Can't upload files

Post by Jan »

ok
If you find Phoca extensions useful, please support the project
randy.jz4
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 16 Mar 2009, 15:32

Re: [Solved] Can't upload files

Post by randy.jz4 »

I''ve the same issue, after hours of investigation i found this.

You have to chance the "post_max_size" and the "upload_max_filesize" in you configuration file (php.ini) to a size you need, in my case i set it up to:

post_max_size = 500M
upload_max_filesize=500M

I am sure that will help! :D
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] Can't upload files

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
mgwarren
Phoca Member
Phoca Member
Posts: 11
Joined: 03 Oct 2009, 22:18

Re: [Solved] Can't upload files

Post by mgwarren »

I did this but still cannot upload zip files, I even added the file type into the settings as a mime and it won't work. Could you help me with this?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48739
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: [Solved] Can't upload files

Post by Jan »

I think you should ask your server webhoster, as I don't know your server and have no information about this problems (maybe some error log or other server log will help) :(

Maybe you can try to change the mime type in the settings:
application/zip
application/x-zip
application/x-zip-compressed
application/octet-stream
application/x-compress
application/x-compressed
multipart/x-zip

Try to check upload and download some small file (if there is no some limitation) :idea:

Jan
If you find Phoca extensions useful, please support the project
Post Reply