Keyword

New: problem uploading pdf in Media Center!

  • Theo Pinette
  • Theo Pinette's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months ago - 11 years 7 months 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!!

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago - 11 years 7 months ago #118031 by Phil G
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:
  • 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
  • Theo Pinette's Avatar Topic Author
  • Offline
  • New Member
More
11 years 7 months 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!

Please Log in or Create an account to join the conversation.

More
11 years 7 months ago - 11 years 7 months ago #118033 by Phil G
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

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago - 11 years 6 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

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #118035 by Phil G
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.

More
11 years 6 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

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago #118037 by Phil G
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.

Please Log in or Create an account to join the conversation.

More
11 years 6 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 ?

Please Log in or Create an account to join the conversation.

More
11 years 6 months ago - 11 years 5 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.

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #118040 by Bart Baetens
Replied by Bart Baetens on topic Re: New: problem uploading pdf in Media Center!
Hi, I'm also having the same problem not being able to upload a pdf attachement in Firefox (in Safari and Chrome it works well).

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 8 months ago #118041 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: New: problem uploading pdf in Media Center!
Which version of FF are you using Bart?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

More
10 years 8 months ago #118042 by Bart Baetens
Replied by Bart Baetens on topic Re: New: problem uploading pdf in Media Center!
Currently I'm using FF version 31.0.

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 8 months ago #118043 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: New: problem uploading pdf in Media Center!
I tried it with K2 2.6.8, J! 1.5.26 and PHP 5.5 and 5.2 and FF 31 over a mac.
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.

More
10 years 8 months ago #118044 by Bart Baetens
Replied by Bart Baetens on topic Re: New: problem uploading pdf in Media Center!
Hi thanks. I tried it yesterday via my Imac and today via the Macbook. Both have the same result. I can succesfully add attachements via Safari and Chrome on both machines. Only FF is having this issue (or FF in combination with the hosting configuration).

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 8 months ago #118045 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: New: problem uploading pdf in Media Center!
It 's probably the latter.
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.

More
10 years 8 months ago #118046 by Bart Baetens
Replied by Bart Baetens on topic Re: New: problem uploading pdf in Media Center!
I saw there is an open bug on the mozilla website:

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
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 8 months ago #118047 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: New: problem uploading pdf in Media Center!
Thanks for sharing this Bart.

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.


Powered by Kunena Forum