- Posts: 2
COMMUNITY FORUM
New: problem uploading pdf in Media Center!
- Theo Pinette
-
Topic Author
- Offline
- New Member
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
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
- Posts: 2
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
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
- Posts: 7
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
Please Log in or Create an account to join the conversation.
- Grégory Roussel
-
- Offline
- New Member
- Posts: 7
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
I'm using Firefox Version 24.
Please Log in or Create an account to join the conversation.
- Grégory Roussel
-
- Offline
- New Member
- Posts: 7
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
- Posts: 7
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.
- Bart Baetens
-
- Offline
- New Member
- Posts: 7
I'm using K2 version 2.6.8 on Joomla 1.5.26 running on PHP version 5.3.28.
When I attach an image, everything is working well.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bart Baetens
-
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
It seems to work fine. I cannot seem to replicate the issue. I will try with PHP 5.3 as well anf let you know.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bart Baetens
-
- Offline
- New Member
- Posts: 7
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
It could be a security extension blocking this. Not a very good one imo.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Bart Baetens
-
- Offline
- New Member
- Posts: 7
Bug 373621 - File upload set mime type as application/download instead of application/pdf
The bug has been reopend on 24th of July.
bugzilla.mozilla.org/show_bug.cgi?id=373621
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- Offline
- Platinum Member
- Posts: 15920
Reasons like these is why I changed to Chrome.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.