- Posts: 2
COMMUNITY FORUM
New: problem uploading pdf in Media Center!
- Theo Pinette
- Topic Author
- Offline
- New Member
Less
More
11 years 2 weeks ago - 11 years 2 weeks ago #118030
by Theo Pinette
New: problem uploading pdf in Media Center! was created by Theo Pinette
I've uploaded images many times in Joomla, pdf's included, but today I browse, select the pdf document, click Upload, and get this message: "Please input a file for upload"
I don't know what the problem could be! Help!!
I don't know what the problem could be! Help!!
Please Log in or Create an account to join the conversation.
- Phil G
- Offline
- New Member
11 years 2 weeks ago - 11 years 2 weeks ago #118031
by Phil G
Replied by Phil G on topic Re: New: problem uploading pdf in Media Center!
Hi All,
I'm getting the same (or similar problem)
I'm trying to upload a PDF to an article (which previously worked).
I'm using Joomla version 2.5.14 and K2 v2.6.2
Here are my findings:
In K2 Parameters page > Advanced tab > Change root attachments folder field is empty.
Folder permissions are 755
File permissions are 644
Looking at K2 Information page I see:
Directory permissions
Check Result
media/k2 Writable
media/k2/attachments Writable
media/k2/categories Writable
media/k2/galleries Writable
media/k2/items Writable
media/k2/users Writable
media/k2/videos Writable
cache Writable
The pdf file name is test.pdf
How can I debug this problem? I see no error message nor any application log.
Thanks in advance,
Phil
I'm getting the same (or similar problem)
I'm trying to upload a PDF to an article (which previously worked).
I'm using Joomla version 2.5.14 and K2 v2.6.2
Here are my findings:
- When attempting upload on front end the file never makes it to the /media/k2/attachments folder. When I save (and page reloads) my article I notice the attachment has no name and size 0
- When uploading using FTP to attachments folder, media manager sees it, but every folder and every item shows a padlock. I can select an item but then when I save my article I get a 404 local file not found error
- Back end article editing shows same symptoms
In K2 Parameters page > Advanced tab > Change root attachments folder field is empty.
Folder permissions are 755
File permissions are 644
Looking at K2 Information page I see:
Directory permissions
Check Result
media/k2 Writable
media/k2/attachments Writable
media/k2/categories Writable
media/k2/galleries Writable
media/k2/items Writable
media/k2/users Writable
media/k2/videos Writable
cache Writable
The pdf file name is test.pdf
How can I debug this problem? I see no error message nor any application log.
Thanks in advance,
Phil
Please Log in or Create an account to join the conversation.
- Theo Pinette
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
11 years 2 weeks ago #118032
by Theo Pinette
Replied by Theo Pinette on topic Re: New: problem uploading pdf in Media Center!
Phil, you are more expert than I but I finally solved the problem after googling the problem and finding some OLD Joomla forum entries. It seems the the 10K size limit is Joomla's size limit and it may be superseded in other places (that are over my head). So I thought that size really could be the issue even tho my file was just below 10 kb.
I checked the sizes of other pdfs that I had upload successfully and they were much smaller.
So I went back to the doc that I have turned into a pdf, compressed all the photos, and made another pdf that was probably a third the size of the original. That did solve the problem.
Hope you find your answer!
I checked the sizes of other pdfs that I had upload successfully and they were much smaller.
So I went back to the doc that I have turned into a pdf, compressed all the photos, and made another pdf that was probably a third the size of the original. That did solve the problem.
Hope you find your answer!
Please Log in or Create an account to join the conversation.
- Phil G
- Offline
- New Member
11 years 2 weeks ago - 11 years 2 weeks ago #118033
by Phil G
Replied by Phil G on topic Re: New: problem uploading pdf in Media Center!
Hi Theo, I've tried with various file sizes. 4KB to 70KB and it has the same issue. Thanks anyway.
I've successfully got it working via FTP upload. I don't know why it now works, but it does! I did reset the directory permissions to 777 then back to 755, so maybe that triggered something?
What isn't working is if I upload a file to the server using the article editor. (front end or back end) I get no error, but I get an new line in the list of attachments with a blank filename, title, and title attribute?. I was previously mistaking the 0 for file size, but it is in the fact number of downloads.
I've checked via FTP and no file is getting uploaded using the uploader.
Any ideas anyone?
Thanks again,
Phil
I've successfully got it working via FTP upload. I don't know why it now works, but it does! I did reset the directory permissions to 777 then back to 755, so maybe that triggered something?
What isn't working is if I upload a file to the server using the article editor. (front end or back end) I get no error, but I get an new line in the list of attachments with a blank filename, title, and title attribute?. I was previously mistaking the 0 for file size, but it is in the fact number of downloads.
I've checked via FTP and no file is getting uploaded using the uploader.
Any ideas anyone?
Thanks again,
Phil
Please Log in or Create an account to join the conversation.
- Grégory Roussel
- Offline
- New Member
Less
More
- Posts: 7
10 years 11 months ago - 10 years 11 months ago #118034
by Grégory Roussel
Replied by Grégory Roussel on topic Re: New: problem uploading pdf in Media Center!
Hello
same issue here
can't upload pdf, but for example jpg are ok
So those who have this issue could please tell which PHP version is involved ?
Mine is PHP5.3.27
with fcgid + xcache
before I were with 5.3.20 and all was fine.
But I can't confirm that this is the real reason because I've made a full server change.
so please anyone give your php version in this topic
Thanks a lot
EDIT:
Issue created
github.com/joomlaworks/k2/issues/54
same issue here
can't upload pdf, but for example jpg are ok
So those who have this issue could please tell which PHP version is involved ?
Mine is PHP5.3.27
with fcgid + xcache
before I were with 5.3.20 and all was fine.
But I can't confirm that this is the real reason because I've made a full server change.
so please anyone give your php version in this topic
Thanks a lot
EDIT:
Issue created
github.com/joomlaworks/k2/issues/54
Please Log in or Create an account to join the conversation.
- Phil G
- Offline
- New Member
10 years 11 months ago #118035
by Phil G
Replied by Phil G on topic Re: New: problem uploading pdf in Media Center!
My problem was related to using Firefox. If I use Google Chrome it works correctly.
Please Log in or Create an account to join the conversation.
- Grégory Roussel
- Offline
- New Member
Less
More
- Posts: 7
10 years 11 months ago #118036
by Grégory Roussel
Replied by Grégory Roussel on topic Re: New: problem uploading pdf in Media Center!
Happy for you.
But I hate your reply :ohmy:
And you're right, it works...
damned
But I hate your reply :ohmy:
And you're right, it works...
damned
Please Log in or Create an account to join the conversation.
- Phil G
- Offline
- New Member
10 years 11 months ago #118037
by Phil G
Replied by Phil G on topic Re: New: problem uploading pdf in Media Center!
The question is, is this a problem with Firefox, or is this a problem with K2 browser compatibility, and why isn't anyone else reporting the same issue?
I'm using Firefox Version 24.
I'm using Firefox Version 24.
Please Log in or Create an account to join the conversation.
- Grégory Roussel
- Offline
- New Member
Less
More
- Posts: 7
10 years 11 months ago #118038
by Grégory Roussel
Replied by Grégory Roussel on topic Re: New: problem uploading pdf in Media Center!
Me too FF24
Just in case what are your php and apache version ?
Just in case what are your php and apache version ?
Please Log in or Create an account to join the conversation.
- Grégory Roussel
- Offline
- New Member
Less
More
- Posts: 7
10 years 11 months ago - 10 years 11 months ago #118039
by Grégory Roussel
Replied by Grégory Roussel on topic Re: New: problem uploading pdf in Media Center!
FIXED (for me at least)
Answer is, i've found that this is not really a FF24 issue.
But you must let the exec function work.
So anyone check your disable_functions in your php.ini, and remove the exec if you put it here.
OR/AND
don't forget to install PECL Fileinfo extension or compile it at php install.
After that all is fine.
Answer is, i've found that this is not really a FF24 issue.
But you must let the exec function work.
So anyone check your disable_functions in your php.ini, and remove the exec if you put it here.
OR/AND
don't forget to install PECL Fileinfo extension or compile it at php install.
After that all is fine.
Please Log in or Create an account to join the conversation.