Author Topic: Fix The Attachments  (Read 63384 times)

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Fix The Attachments
« Reply #45 on: April 27, 2007, 08:18:32 am »
Quote
Quote
Quote
   .bmp  image/x-MS-bmp   
   .gif  image/gif 
   .gz  application/x-gzip 
   .hqx  application/mac-binhex40 
   .htm  application/octet-stream 
   .html  application/octet-stream 
   .ico  image/ico 
   .ipk  application/x-tar 
   .jpeg  image/jpeg 
   .jpg  image/jpeg

Above is an example of some of the mime types listed which is the same pre and post PHP update.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159895\"][{POST_SNAPBACK}][/a][/div]
I just clicked on a .jpg attachment and the Page Info window tells me the type is text/html.  Somehow these mime types are not being passed to my browser (Firefox).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159896\"][{POST_SNAPBACK}][/a][/div]

Code: [Select]
.htm application/octet-stream
.html application/octet-stream

shouldn't these be html/text ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159913\"][{POST_SNAPBACK}][/a][/div]

Yes... but thats beside the point! :-)

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Fix The Attachments
« Reply #46 on: April 27, 2007, 08:40:13 am »
Quote
Quote
Quote
Quote
   .bmp  image/x-MS-bmp   
   .gif  image/gif 
   .gz  application/x-gzip 
   .hqx  application/mac-binhex40 
   .htm  application/octet-stream 
   .html  application/octet-stream 
   .ico  image/ico 
   .ipk  application/x-tar 
   .jpeg  image/jpeg 
   .jpg  image/jpeg

Above is an example of some of the mime types listed which is the same pre and post PHP update.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159895\"][{POST_SNAPBACK}][/a][/div]
I just clicked on a .jpg attachment and the Page Info window tells me the type is text/html.  Somehow these mime types are not being passed to my browser (Firefox).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159896\"][{POST_SNAPBACK}][/a][/div]

Code: [Select]
.htm application/octet-stream
.html application/octet-stream

shouldn't these be html/text ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159913\"][{POST_SNAPBACK}][/a][/div]

Yes... but thats beside the point! :-)

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159944\"][{POST_SNAPBACK}][/a][/div]

and why not? currently when clicking on an attachment, the server sends the content back correctly as an octet-stream, but the accompanying header is wrongly being sent back as html/text which is clearly a mismatch and the browser obediently displays the octet-string as text as instructed by the header...
SL-C3000 - pdaXii13 build5.4.9 (based on pdaXrom beta3) / SL-C3100 - Sharp ROM 1.02 JP (heavily customised)
Netgear MA701 CF, SanDisk ConnectPlus CF, Socket Bluetooth CF, 4GB Kingston CF,  4GB pqi SD, 4GB ChoiceOnly SD, 2GB SanDisk SD USB Plus, 1GB SanDisk USB Plus, 1GB Transcend SD, 2GB SanDisk MicroSD with SD adaptor, Piel Frama Leather Case, GoldX 5-in-1 USB cable, USB hub, USB mouse, USB keyboard, USB ethernet, USB HDD, many other USB accessories...
(Zaurus SL-C3000 owner since March 14. 2005, Zaurus SL-C3100 owner since September 21. 2005)
http://members.iinet.net.au/~wyso/myZaurus - zBook3K

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Fix The Attachments
« Reply #47 on: April 27, 2007, 09:10:16 am »
Quote
Quote
Quote
Quote
Quote
   .bmp  image/x-MS-bmp   
   .gif  image/gif 
   .gz  application/x-gzip 
   .hqx  application/mac-binhex40 
   .htm  application/octet-stream 
   .html  application/octet-stream 
   .ico  image/ico 
   .ipk  application/x-tar 
   .jpeg  image/jpeg 
   .jpg  image/jpeg

Above is an example of some of the mime types listed which is the same pre and post PHP update.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159895\"][{POST_SNAPBACK}][/a][/div]
I just clicked on a .jpg attachment and the Page Info window tells me the type is text/html.  Somehow these mime types are not being passed to my browser (Firefox).
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159896\"][{POST_SNAPBACK}][/a][/div]

Code: [Select]
.htm application/octet-stream
.html application/octet-stream

shouldn't these be html/text ?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159913\"][{POST_SNAPBACK}][/a][/div]

Yes... but thats beside the point! :-)

Late
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159944\"][{POST_SNAPBACK}][/a][/div]

and why not? currently when clicking on an attachment, the server sends the content back correctly as an octet-stream, but the accompanying header is wrongly being sent back as html/text which is clearly a mismatch and the browser obediently displays the octet-string as text as instructed by the header...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159948\"][{POST_SNAPBACK}][/a][/div]

I was joking... but htm and html has been changed to text/html...

Still looking for a fix

Late
Sharp Zaurus SL-C3100 and SL-6000L
pdaXrom Developer
Please visit pdaXrom.org for updates
My Blog
IRC #pdaxrom @ FreeNode

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #48 on: April 27, 2007, 11:01:02 am »
Appreciate what you are doing.  Getting the examples also explains why I always had trouble with some downloads before the upgrade as well.

Late, maybe it needs a reboot or something similar to notice your changes?  (cringing...another brief downage??)

My mime.types file also shows:

application/x-gtar   gtar tgz

But it sounds more like that list isn't getting read by something...to point out what is probably already obvious to you.

sdjf
« Last Edit: April 27, 2007, 11:06:12 am by sdjf »
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Fix The Attachments
« Reply #49 on: April 27, 2007, 06:58:46 pm »
Quote
Appreciate what you are doing. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159957\"][{POST_SNAPBACK}][/a][/div]
Yeah, I'd like to emphasize that I definitely appreciate the time ISO is spending on this.  I didn't mean to sound terse in my last response and I hope it didn't come across that way.
Device: SL-C3200 running pdaXii13v2 build 5.5.0
Networking: Symbol Spectrum24 WLAN card; Kingston CIO10T CF NIC
Storage: 4GB Transcend 150x SD; 16GB Transcend 133x CF; 4GB Seagate CF HDD; 4GB Patriot SD
HID: Logitech V450 Laser Mouse; generic silicone USB keyboard; 2 generic optical mice; stock plastic stylus
GPS: generic "UT-41" USB GPS Receiver
Case: neoprene case from my old Palm foldable keyboard

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #50 on: April 29, 2007, 04:30:46 am »
Quote
Quote
Appreciate what you are doing. 
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159957\"][{POST_SNAPBACK}][/a][/div]
Yeah, I'd like to emphasize that I definitely appreciate the time ISO is spending on this.  I didn't mean to sound terse in my last response and I hope it didn't come across that way.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159988\"][{POST_SNAPBACK}][/a][/div]

No, I didn't think that.  You were helping out with more data.  I have just had a horrible time because of the attachment problem, and wanted ISO and Meanie also to know how much I appreciate their taking the problem seriously and working on it instead of telling me to install a fourth browser on my Z.

I am wondering, though, what, if anything can be done about attachments that have no extension.  Sometimes they are binaries, and sometimes they are text.  There are times when I need to send something to someone who may not be able to unzip a file.

What are files without extensions are destined to be considered?

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Fix The Attachments
« Reply #51 on: April 29, 2007, 07:56:35 am »
Quote
What are files without extensions are destined to be considered?
Apart from the common image files (jpeg, png etc), all other files should be sent as "application/octet-stream" then the user will have the choice of "save file as ..." or "open with ..." (the latter if the browser allows).
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
Fix The Attachments
« Reply #52 on: May 04, 2007, 08:29:52 pm »
Image files still produce a screen full of characters. Just tried it. crap
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Fix The Attachments
« Reply #53 on: May 17, 2007, 04:49:10 am »
Quote
Image files still produce a screen full of characters. Just tried it. crap
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160493\"][{POST_SNAPBACK}][/a][/div]
 

I just clicked on an image in a post.... same symptoms. I presume this means that attached files and images in posts work in the same way.. or not!  

Are this issue and the non working ZUG downloads issue connected?  

Oh well, somebody is working on it because some things have been restored. Thank you to whichever admin(s) have been working on this.  

Please keep up the good work.
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #54 on: May 17, 2007, 12:05:07 pm »
Quote
Are this issue and the non working
   ZUG downloads issue connected?

You do know that in the meantime some, if not all, of the ZUG downloads can be obtained using wget, didn't you?  At least it's worked for me on the little testing I did.

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Fix The Attachments
« Reply #55 on: May 17, 2007, 12:43:15 pm »
Quote
Quote
Are this issue and the non working
   ZUG downloads issue connected?

You do know that in the meantime some, if not all, of the ZUG downloads can be obtained using wget, didn't you?  At least it's worked for me on the little testing I did.

sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161547\"][{POST_SNAPBACK}][/a][/div]
 Thanks for the tip  

Feel like posting an example?

My wgetting success has been in using the script for downloading feeds without hurting the bandwith too much. You know, the one that downloads the newer packages only. It appears somewhere in the posts about the cacko feed at stupkid's site. I was able to alter it to do the same for other feeds but I'm a bit unsure about how to get at the ZUG downloads. After all it would be counter productive to download the lot wouldn't it?

It might be handy to post a howto for the new users that keep asking for things that were/are in the downloads so that they could download specific targets. Any volunteers??


Cheers  

PS I'm not very clever with wget myself but I'll report back with any successful results.
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #56 on: May 17, 2007, 02:23:30 pm »
Here's a no frills basic wget command.  The url for the feed index is:
     http://www.zaurususergroup.org/feed

That shows you all the packages.  You pick the name of what you want, and tack it on to the end of the above url.  So, if I want hancompresenter_1.6-lite-1_arm.ipk, I would enter (all one one line):

wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk  Do not use wildcards...use the full url and package name.. Note the BBS software has screwed up my urls but they must be written out in full without any dots]

And away we go...  There are lots of complicated options, like how to put the file in a different location.  If I want something to go on my SD card, I would enter:

wget -P /mnt/card/  http://blablabla.ipk

No time to explain all the options but this should get you started.  Here's proof it works:
# wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
--11:19:12--  http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
           => `hancompresenter_1.6-lite-1_arm.ipk'
Connecting to www.zaurususergroup.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 118,393 [text/plain]

    0K .......... .......... .... [I ran out of room for this post but that's how a download looks to start with]  sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Fix The Attachments
« Reply #57 on: May 17, 2007, 05:01:22 pm »
Quote
Here's a no frills basic wget command.  The url for the feed index is:
     http://www.zaurususergroup.org/feed

That shows you all the packages.  You pick the name of what you want, and tack it on to the end of the above url.  So, if I want hancompresenter_1.6-lite-1_arm.ipk, I would enter (all one one line):

wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk  Do not use wildcards...use the full url and package name.. Note the BBS software has screwed up my urls but they must be written out in full without any dots]

And away we go...  There are lots of complicated options, like how to put the file in a different location.  If I want something to go on my SD card, I would enter:

wget -P /mnt/card/  http://blablabla.ipk

No time to explain all the options but this should get you started.  Here's proof it works:
# wget http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
--11:19:12--  http://www.zaurususergroup.org/feed/hancom...-lite-1_arm.ipk
           => `hancompresenter_1.6-lite-1_arm.ipk'
Connecting to www.zaurususergroup.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: 118,393 [text/plain]

    0K .......... .......... .... [I ran out of room for this post but that's how a download looks to start with]  sdjf
[div align=\"right\"][a href=\"index.php?act=findpost&pid=161554\"][{POST_SNAPBACK}][/a][/div]
  Sorry SDJF, I'm feeling disappointed now! I must have misled you.  

I was talking about the ZUG Downloads not the feed. The feed is now back up in operation from the link on the ZUG main page, thanks again admin(s). Even when it wasn't, it was possible to do as you explain and wget individual files. I suppose you might be interested in this script for downloading the whole feed and for then keeping it updated by simply downloading the changes? I take no credit for it I grabbed it from one of the Cacko threads and edited it to use on the ZUG feed.

Thanks for your examples, they'll help me make more sense of wget.  

What I'd like for Christmas is for the admins to restore the downloads, a collection of all sorts of roms, packages, scripts and generally interesting and useful stuff for the Zs!

Actually my birthday is in August so I'd rather have the downloads back before then for a present!!  

cheers
« Last Edit: May 17, 2007, 05:02:35 pm by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Fix The Attachments
« Reply #58 on: May 17, 2007, 05:06:50 pm »
 I tried to attach the script. It failed. I'm renaming the file to have a zip extension. That should let me attach it. Don't be fooled it is a .sh file. If you download it just replace the extension zip with the extension sh.

You will of course have to right click on the attachment and rename it to getzugfeed.sh

The broken bits on this site really frustrate me!
« Last Edit: May 17, 2007, 05:10:53 pm by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #59 on: May 17, 2007, 09:40:33 pm »
So where the heck is (or was) the ZUG downloads? And what's the difference? 8^/

if it isn't too dumb a question

sdjf
http://www.sdjf.esmartdesign.com
http://www.sdjf.wordpress.com
-----------------
sl5500 running Sharp ROM 2.38 (dead batteries)
sl6000L running Sharp ROM 1.12 (still working)
Opera 7.25 and 7.30
Socket CF 56k modem
3Com USB Ethernet Adapter
Toshiba, Lexar and Kingston SD cards
Lexar, Kingston and Transcend CF cards