Can't Upload files to Library

Asked by Athanasios Politis

Hello,

I am having a very strange issue with Xibo Library...
I can upload photos into the library but no videos...

I get an error that says "Error Forbidden". I thought that it might be the permissions but the library folder is set to 770...

Xibo is hosted on a Linux Website Hosting Server ...

The Library folder is under the root of the web server under the same httpdocs folder as the main xibo website....

I really can't understand why it does that....

I have attached a link below with a screenshot of the error.

https://drive.google.com/file/d/0B4CLWesdQj9lck1CYkctRmlBMU0/edit?usp=sharing

Thank you in advance,
Thanasis

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Athanasios Politis
Solved:
Last query:
Last reply:
Revision history for this message
Dan Garner (dangarner) said :
#1

It may be a problem with the size of the file and your PHP configuration - can you double check the linked FAQ

Revision history for this message
Dan Garner (dangarner) said :
#2

Dan Garner suggests this article as an answer to your question:
FAQ #510: “How do I upload files bigger than 2MB / How can I increase the upload file size limit?”.

Revision history for this message
Athanasios Politis (a-politis) said :
#3

Hello,

Thank you for your reply.

I forgot to mention that the settings on the php.ini are:

upload_max_filesize = 256M
post_max_size = 128M
max_execution_time = 240

The size of the video files that I am trying to upload are around 50Mb . . .

Revision history for this message
Alex Harrington (alexharrington) said :
#4

Please go back to the FAQ article and adjust all the parameters required

Revision history for this message
Athanasios Politis (a-politis) said :
#5

Hello,

Thank you for your suggestion.

All the parameters on the FAQ article are set on the server with the below values:

file_uploads on
upload_max_filesize 256M
max_input_time 60
memory_limit 192M
max_execution_time 240
post_max_size 128

I really do not see what I am doing wrong . . .
With the settings above I should be able to upload a file of at least 50Mb . . . .

Thank you in advance,
Thanasis

Revision history for this message
Athanasios Politis (a-politis) said :
#6

Also now, If I try to upload a 63Mb file I get a message: "Error True"

Does anyone know what those errors are and what they mean?

https://www.dropbox.com/s/g4n2fb9jic6ovwo/error%20true.png

Revision history for this message
Alex Harrington (alexharrington) said :
#7

Post max size has no units, so that will limit you to 128 bytes upload.

Also are you using IIS by any chance? There's extra configuration required
for IIS but the project doesn't support or test with IIS so you'll need to
find the previous answers on the subject for what to adjust

Revision history for this message
Athanasios Politis (a-politis) said :
#8

Hello,

Sorry this was a typo of mine.

The Value is 128M on the Post_Max_size

The server is a Linux Server with Apache.

Below is the a link to the php info of the server.

http://signage.f1computers.gr/phpinfo.php

Thanasis

Revision history for this message
Alex Harrington (alexharrington) said :
#9

Check something like apparmor or selinux aren't preventing the file upload,
and that your webserver user has permission to write to /tmp and your Xibo
server library directory and all its subdirectories

Revision history for this message
Athanasios Politis (a-politis) said :
#10

Hello,

In regards of the apparmor or selinux, I have already contacted the Hosting Company and I will have a reply tomorrow.

About the /tmp and Xibo Library folder and subdirectory permissions are set to 777.

I tried to upload 2 files one went through fine and the other has an error. I noticed that If the file is less than 25MB it goes through fine. If it is more than 25MB it fails for some reason.

I have attached a screen shot with that below.

https://www.dropbox.com/s/n6scjxnfvv6ckqj/upload%20errors.png

Thank you,
Thanasis

Revision history for this message
Alex Harrington (alexharrington) said :
#11

The only thing it can be is the server setup. The Xibo code works fine. I
upload files much larger on a daily basis

Revision history for this message
Athanasios Politis (a-politis) said :
#12

Cool, I will check with the Hosting Provider.

Thanks for all your help! :-)