dadaIMC Discussion List
More on image uploads...
OK, so I did some investigating into the image upload issues, and
noticed 3 things.
1) Some browsers send the MIME-type as "type/subtype;" with a trailing
semi-colon. The RFC for MIME-types allows for the semi-colon and
optional parameters after it, so I needed to take that into account.
I've fixed the code so it properly interprets MIME-types with
semi-colons, and that should fix SOME of the upload issues.
2) Some browsers send the MIME-type as "open" -- I can't figure this one
out at all. You'll notice, in the Media Gallery, the MIME-type is
indicated next to the file size. Some of them are marked simply
"(open)", but it wasn't my code that put it there! If anyone knows more
about this, let me know. Otherwise, I can work around it (and try to
detect MIME-type based on file suffix for those types), but I don't know
what other "fake" MIME-types may crop up in the future. So this is
"fixed" for now, but it's a workaround.
3) Someone did tests on your server using W3m, uploading a JPEG and a
GIF, but both were recorded as being "text/plain". I'm not sure how to
handle this...W3m is just plain broken if it posts file uploads in that
manner. I can always try to detect MIME-type based on file suffix again,
but I _don't_ want to privilege suffixes over sent headers in general.
I'm open to suggestions about this one. I could do really special
browser detection, and default to detection-by-suffix if it comes from
W3m, but that's starting to get awfully complicated just to handle file
uploads...
Fixed, clean code is on alt.baltimoreimc.org, if anyone wants to test
file uploads with funky browsers and MIME-type headers...
Cheers,
spud.
On Wednesday, July 31, 2002, at 10:42 AM, Sue wrote:
> Hi Spud and All -
>
> Thanks for all the great work being done on the language issue!
>
> I just wanted to comment on the following :
>
> spud wrote :
> "Sidenote to Petros: One of the files you uploaded appears as "unknown
> media" -- when you uploaded it, the server received the MIME-type sent
> by the browser (which should have been "image/jpeg") as simply "open".
> Do you have any idea why/how the image was sent without a proper
> MIME-type? Was there anything strange about it? Obviously there's some
> sort of problem here, but I'd like to figure out if I can work around
> it..."
>
> sue writes :
> We've been having problems with the uploading of .jpgs since we first
> started
> working on this project. I took on the responsibility to do some tests
> and to
> give a full report, but I've put it on hold while the language issues
> are being
> dealt with. I don't want to complicate matters by throwing too many
> issues into
> the pot, and for now the language problem is the most pressing.
>
> When things start looking more settled on the language front, I'll start
> forwarding my reports.
>
> --sue
>
>
>
>
>
> dadaIMC Support wrote:
>
>> Petros et al --
>>
>> Glad to see this message. I went immediately to the site to see what's
>> happened in testing, and kept finding blank display pages...
>>
>> Ooops! I changed the HTML comment that appears on cached pages, so that
>> it reflects the language of the cached file, but I had broken the line
>> of code that actually includes the cached file! So the display of
>> articles once they're cached was broken!
>>
>> Bad bad spud.
>>
>> It's fixed now, and the files are intact. I'll take a look at the
>> results, but at first glance, it appears that the "htmlentities()"
>> function is definitely broken (I have it logged as a bug with the PHP
>> folks), but we should be able to use "htmlspecialchars()" as a
>> workaround in the mean time.
>>
>> I'm using ISO-8859-7 as the character set, but I noticed that you've
>> been entering text using different character sets...this is great
>> testing.
>>
>> However, since I'm not particularly likely to notice errors in the
>> display, I'm counting on you to let me know if you run into anything
>> strange -- a missing character here, a strange display phenomenon
>> there,
>> etc...
>>
>> Apologies for the broken cache display...
>>
>> Sidenote to Petros: One of the files you uploaded appears as "unknown
>> media" -- when you uploaded it, the server received the MIME-type sent
>> by the browser (which should have been "image/jpeg") as simply "open".
>> Do you have any idea why/how the image was sent without a proper
>> MIME-type? Was there anything strange about it? Obviously there's some
>> sort of problem here, but I'd like to figure out if I can work around
>> it...
>>
>> Cheers,
>> spud.
>>
>> On Wednesday, July 31, 2002, at 03:17 AM, Petros Evdokas wrote:
>>
>>>
>>> Cyprus Indymedia
>>> Hellenic language testing /Delays and Apologies
>>>
>>>
>>> Spud,
>>> and our other friends working on this project,
>>>
>>> We've had a whole bunch of problems recently at all
>>> levels here in Cyprus, delaying our ability to do any
>>> reasonable language tests on the new test site which
>>> was set up by Spud.
>>>
>>> Our problems included technical "thangs" (browser
>>> personality disorders), personal situations (our group
>>> is small and most of our lives inter-connected), and
>>> political situations (the populations of our three
>>> countries - Cyprus, Turkey, and Greece - have been in
>>> continuous political "overstimulation" with rapid
>>> developments in the public arena, causing some sort of
>>> social paralysis to the progressive community).
>>>
>>> Anyway, today there's a chance to so some tests, and
>>> within a few hours we'll have some useful feedback.
>>>
>>>
>>> Anyone wishing to see the test site or, try it out,
>>> it's here:
>>> alt.baltimoreimc.org/newswire/index.php
>>> To View the list of items on this test site:
>>> alt.baltimoreimc.org/newswire/index.php
>>> In order to publish, use the first link above, in this
>>> paragraph, not the link labelled "Post an Article",
>>> found in the page itself.
>>>
>>> Thanks,
>>> Petros
>>> ----------------
>>>
>>>
-------------------------------------------------------------------
a.h.s. boy
spud(at)nothingness.org "as yes is to if,love is to yes"
www.nothingness.org/
-------------------------------------------------------------------
>>
>> _______________________________________________
>> Eastern-Mediterranean-tech mailing list
>> Eastern-Mediterranean-tech-AT-lists.indymedia.org
>> lists.indymedia.org/mailman/listinfo/eastern-mediterranean-tech
>
-------------
To unsubscribe, send blank email
to dadaIMC-off-AT-lists.dadaimc.org
noticed 3 things.
1) Some browsers send the MIME-type as "type/subtype;" with a trailing
semi-colon. The RFC for MIME-types allows for the semi-colon and
optional parameters after it, so I needed to take that into account.
I've fixed the code so it properly interprets MIME-types with
semi-colons, and that should fix SOME of the upload issues.
2) Some browsers send the MIME-type as "open" -- I can't figure this one
out at all. You'll notice, in the Media Gallery, the MIME-type is
indicated next to the file size. Some of them are marked simply
"(open)", but it wasn't my code that put it there! If anyone knows more
about this, let me know. Otherwise, I can work around it (and try to
detect MIME-type based on file suffix for those types), but I don't know
what other "fake" MIME-types may crop up in the future. So this is
"fixed" for now, but it's a workaround.
3) Someone did tests on your server using W3m, uploading a JPEG and a
GIF, but both were recorded as being "text/plain". I'm not sure how to
handle this...W3m is just plain broken if it posts file uploads in that
manner. I can always try to detect MIME-type based on file suffix again,
but I _don't_ want to privilege suffixes over sent headers in general.
I'm open to suggestions about this one. I could do really special
browser detection, and default to detection-by-suffix if it comes from
W3m, but that's starting to get awfully complicated just to handle file
uploads...
Fixed, clean code is on alt.baltimoreimc.org, if anyone wants to test
file uploads with funky browsers and MIME-type headers...
Cheers,
spud.
On Wednesday, July 31, 2002, at 10:42 AM, Sue wrote:
> Hi Spud and All -
>
> Thanks for all the great work being done on the language issue!
>
> I just wanted to comment on the following :
>
> spud wrote :
> "Sidenote to Petros: One of the files you uploaded appears as "unknown
> media" -- when you uploaded it, the server received the MIME-type sent
> by the browser (which should have been "image/jpeg") as simply "open".
> Do you have any idea why/how the image was sent without a proper
> MIME-type? Was there anything strange about it? Obviously there's some
> sort of problem here, but I'd like to figure out if I can work around
> it..."
>
> sue writes :
> We've been having problems with the uploading of .jpgs since we first
> started
> working on this project. I took on the responsibility to do some tests
> and to
> give a full report, but I've put it on hold while the language issues
> are being
> dealt with. I don't want to complicate matters by throwing too many
> issues into
> the pot, and for now the language problem is the most pressing.
>
> When things start looking more settled on the language front, I'll start
> forwarding my reports.
>
> --sue
>
>
>
>
>
> dadaIMC Support wrote:
>
>> Petros et al --
>>
>> Glad to see this message. I went immediately to the site to see what's
>> happened in testing, and kept finding blank display pages...
>>
>> Ooops! I changed the HTML comment that appears on cached pages, so that
>> it reflects the language of the cached file, but I had broken the line
>> of code that actually includes the cached file! So the display of
>> articles once they're cached was broken!
>>
>> Bad bad spud.
>>
>> It's fixed now, and the files are intact. I'll take a look at the
>> results, but at first glance, it appears that the "htmlentities()"
>> function is definitely broken (I have it logged as a bug with the PHP
>> folks), but we should be able to use "htmlspecialchars()" as a
>> workaround in the mean time.
>>
>> I'm using ISO-8859-7 as the character set, but I noticed that you've
>> been entering text using different character sets...this is great
>> testing.
>>
>> However, since I'm not particularly likely to notice errors in the
>> display, I'm counting on you to let me know if you run into anything
>> strange -- a missing character here, a strange display phenomenon
>> there,
>> etc...
>>
>> Apologies for the broken cache display...
>>
>> Sidenote to Petros: One of the files you uploaded appears as "unknown
>> media" -- when you uploaded it, the server received the MIME-type sent
>> by the browser (which should have been "image/jpeg") as simply "open".
>> Do you have any idea why/how the image was sent without a proper
>> MIME-type? Was there anything strange about it? Obviously there's some
>> sort of problem here, but I'd like to figure out if I can work around
>> it...
>>
>> Cheers,
>> spud.
>>
>> On Wednesday, July 31, 2002, at 03:17 AM, Petros Evdokas wrote:
>>
>>>
>>> Cyprus Indymedia
>>> Hellenic language testing /Delays and Apologies
>>>
>>>
>>> Spud,
>>> and our other friends working on this project,
>>>
>>> We've had a whole bunch of problems recently at all
>>> levels here in Cyprus, delaying our ability to do any
>>> reasonable language tests on the new test site which
>>> was set up by Spud.
>>>
>>> Our problems included technical "thangs" (browser
>>> personality disorders), personal situations (our group
>>> is small and most of our lives inter-connected), and
>>> political situations (the populations of our three
>>> countries - Cyprus, Turkey, and Greece - have been in
>>> continuous political "overstimulation" with rapid
>>> developments in the public arena, causing some sort of
>>> social paralysis to the progressive community).
>>>
>>> Anyway, today there's a chance to so some tests, and
>>> within a few hours we'll have some useful feedback.
>>>
>>>
>>> Anyone wishing to see the test site or, try it out,
>>> it's here:
>>> alt.baltimoreimc.org/newswire/index.php
>>> To View the list of items on this test site:
>>> alt.baltimoreimc.org/newswire/index.php
>>> In order to publish, use the first link above, in this
>>> paragraph, not the link labelled "Post an Article",
>>> found in the page itself.
>>>
>>> Thanks,
>>> Petros
>>> ----------------
>>>
>>>
-------------------------------------------------------------------
a.h.s. boy
spud(at)nothingness.org "as yes is to if,love is to yes"
www.nothingness.org/
-------------------------------------------------------------------
>>
>> _______________________________________________
>> Eastern-Mediterranean-tech mailing list
>> Eastern-Mediterranean-tech-AT-lists.indymedia.org
>> lists.indymedia.org/mailman/listinfo/eastern-mediterranean-tech
>
-------------
To unsubscribe, send blank email
to dadaIMC-off-AT-lists.dadaimc.org
Next message in thread
Thread
Bugzilla account and a bug / Dubravko Kakarigi <dubravko-AT-kakarigi.net> / 01 Aug 2002
Re: [Tech-Eastern-Mediterranean-imc] More on image uploads... / Petros Evdokas <petros_cyprus-AT-burleehost.net> / 07 Aug 2002
Re: [Tech-Eastern-Mediterranean-imc] More on image uploads... / dadaIMC Support <support-AT-dadaimc.org> / 07 Aug 2002
Report Bugs
dadaIMC uses the Mantis bug-tracking system for bug reporting. Please use it! And check for existing reports of your bug before submitting a new one.
CVS
The current CVS version of dadaIMC is now browseable online. Be forewarned, though, that it is not always in a useable state as-is!
Donations
Support development!
