Closed GoogleCodeExporter closed 9 years ago
This seems to be the same as issue #5. Do you have this problem in a recent
version
of Zotonic?
Original comment by scherpenisse
on 10 Feb 2010 at 10:16
Positive, I am running the code from the hg trunk when reproducing this bug
Original comment by raphael.carrier@gmail.com
on 12 Feb 2010 at 12:14
I cannot reproduce this here.
Do you have imagemagick installed, and are its tools (identify, convert, ...)
in the
path? (if you upload an image and see a thumbnail afterwards, then it is
correctly
installed).
Does it happen with every PDF file?
Original comment by scherpenisse
on 12 Feb 2010 at 8:24
Yes, with every pdf files (tried about 4 at this point)
I can upload pictures and the mime type gets recognized properly
I have the tools in my path:
which identify
/opt/local/bin/identify
which convert
/opt/local/bin/convert
echo $PATH
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr
/X11/bin:/Library/Application
Support/VMware Fusion
and the system is able to identify the pdf files properly:
file seobook53.pdf
seobook53.pdf: PDF document, version 1.4
file OReilly\ -\ Programming\ Collective\ Intelligence.pdf
OReilly - Programming Collective Intelligence.pdf: PDF document, version 1.6
But they still get renamed to .bin once uploaded
Original comment by raphael.carrier@gmail.com
on 12 Feb 2010 at 5:16
Do you also see the thumbnails for images? If so, we can rule out imagemagick
issue
for sure.
Can you attach a file you tried?
What OS are you using?
Original comment by scherpenisse
on 12 Feb 2010 at 5:20
Yes, i can see the thumbnails perfectly
Using Mac OS X 10.6.2 issue reproducible with Firefox 3.5.7 and Google Chrome
dev-current
uname -pv
Darwin Kernel Version 10.2.0: Tue Nov 3 10:37:10 PST 2009;
root:xnu-1486.2.11~1/RELEASE_I386 i386
Original comment by raphael.carrier@gmail.com
on 12 Feb 2010 at 5:35
Attachments:
Can you check what mime type is assigned to your pdf files? You should be able
to see it in the admin.
Original comment by ma...@pobox.com
on 12 Feb 2010 at 5:59
application/octet-stream — 2010/2/12/10-1-1-11-6448.bin
Original comment by raphael.carrier@gmail.com
on 12 Feb 2010 at 6:01
What is the working directory from which you run zotonic? Does it contain
spaces?
can you check the output of "file -b --mime-type foo.pdf" in the terminal?
Original comment by scherpenisse
on 12 Feb 2010 at 6:04
no spaces:
pwd
/Users/raph/Desktop/sandbox/zotonic
mime type looks fine:
file -b --mime-type 10.1.1.11.6448.pdf
application/pdf
Original comment by raphael.carrier@gmail.com
on 12 Feb 2010 at 6:25
Is this still relevant, e.g. still having the same problems? We have not been
able to
reproduce this problem...
I'm wondering what to do with this ticket.
Original comment by scherpenisse
on 26 Mar 2010 at 9:00
Closing until issue pops up again and we find a way to reproduce it.
Original comment by scherpenisse
on 11 Apr 2010 at 1:40
Original issue reported on code.google.com by
raphael.carrier@gmail.com
on 9 Feb 2010 at 10:27