Author Topic: Fix The Attachments  (Read 62092 times)

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Fix The Attachments
« Reply #30 on: April 12, 2007, 07:38:22 pm »
Sorry, I tried to do this on my Cacko Z with opera 7.25 and there isn't any way to do it, the file's code loads on the screen if you use automatic downloading.
When I tried typing in the filename after "save location", nothing happened.
The file is supposed to download to /hdd3/Documents/application/downloads
That directory was empty.
You are probably going to need to use a desktop PC and firefox or something like flashget (windows) flashgot (linux)
If you can get meanie's pdaxqtrom loaded, you can use firefox. I'm sure it would download files, although I haven't tried downloading stuff with firefox on my Zaurus.
« Last Edit: April 12, 2007, 07:38:59 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #31 on: April 12, 2007, 07:46:04 pm »
I saw the suggestions about  "right clicks" but I don't have a mouse on my Z.

Here's details of what happens when I attempt downloading a PM attachment:

The url for the attachment is the same whether I do a "Save as" bookmark, or just click on the link and fetch it from my history:

 https://www.oesf.org/forums/index.php?act=A...ype=msg&id=4312  

Then whether I do the following wget when logged in to the board in another window, or not logged in, I get the same results:
<blockquote>
bash-2.05# wget -O myfile.gz  --http-user sdjf --http-passwd xxxx    https://www.oesf.org/forums/index.php\...g\&id=4312 --13:32:03--  https://www.oesf.org/forums/index.php?act=A...ype=msg&id=4312
           => `myfile.gz'
Connecting to www.oesf.org:80... connected!
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
 
    0K .......... .......... ..
               @  10.96 KB/s
 
13:32:06 (10.92 KB/s) - `myfile.gz' saved [23550]
 
bash-2.05#  
</blockquote>
Then I renamed the html file that was retrieved so I could view it in lynx:

bash-2.05# mv myfile.gz  myfile.gz.html

and the board message in the file is:

<blockquote>
Board Message
 
   Sorry, an error occurred. If you are
   unsure on how to use a feature, or
   don't know why you got this error
   message, try looking through the help
   files for more information.
 
The error returned was:
 
   Sorry, some required files are
   missing, if you intended to view a
   topic, it's possible that it's been
   moved or deleted. Please go back and
   try again.
 
You are not logged in, you may log in below  
</blockquote>
As I said above, got the same html file whether or not I was logged in.  Is there a way to tweak wget or one of my browsers?  I have no clue about the mime types on these files.

Thanks,
sdjf

P.S.  when I click on link to "BB Code Help" I get an error 404 so sorry the display may not be quite right.
« Last Edit: April 12, 2007, 07:53:30 pm 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

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Fix The Attachments
« Reply #32 on: April 12, 2007, 07:56:16 pm »
"tap and hold" is right click in some qtopia applications, such as netfront, but netfront doesn't download files anyway.
Fn + click works for right click, but this is on newer clamshells.
Can you mount meanie's pdaxqtrom cramfs/squashfs? It has firefox included in it.
Look under the X/QT forum for pdaxqtrom.
« Last Edit: April 12, 2007, 07:58:38 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #33 on: April 12, 2007, 08:30:13 pm »
Quote
"tap and hold" is right click in some qtopia applications, such as netfront, but netfront doesn't download files anyway.
Fn + click works for right click, but this is on newer clamshells.
Can you mount meanie's pdaxqtrom cramfs/squashfs? It has firefox included in it.
Look under the X/QT forum for pdaxqtrom.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158670\"][{POST_SNAPBACK}][/a][/div]

I'll try the tap-and-click thing in Opera later when I have more time, but I'm skeptical about getting anything other than binary on my screen.

Will menaie's firefox work on an sl5500 with sharp ROM?  I don't have much room right now, but I could just yank out firefox I suppose...but it's also huge, isn't it?  And I thought binaries were somehow hardware-dependent to some extent?

My primary SD card has a bad spot, and I haven't had time to finish backing it up and reformat it.  When I do, I'll be able to make better use of it for installing new apps.  But I'll try it...this download issue is annoying.

Thanks,
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

Jon_J

  • Hero Member
  • *****
  • Posts: 1853
    • View Profile
    • http://
Fix The Attachments
« Reply #34 on: April 12, 2007, 09:49:44 pm »
Go here and look at paragraph 4
http://pdaxqtrom.thegrinder.ws/files/pdaxqtrom.html
meanie recommends X/QT for 5500 models as it uses less resources than pdaxqtrom.
Here's the thread for X/QT
https://www.oesf.org/forums/index.php?showtopic=16209

This is getting off topic, look at that thread about X/QT.
It is slow on the newer clamshells, but firefox loaded in about a minute on mine when I had it installed.
I think you can mount it as a cramfs on a card.
« Last Edit: April 12, 2007, 09:53:38 pm by Jon_J »
C3100 Multiboot-->Angstrom 2007.12-r18 | Cacko 1.23 | ArchLinuxARM
C3200 pdaxii13v2-5.5-alpha4 Akita on NAND

Ambicom WL1100C-CF Wifi - Ambicom CF modem - Ambicom CF GPS - Belkin-F5D5050 USB LAN
Socket CF Bluetooth rev K - Iogear 4 port USB micro hub - pocket CF card reader
Targus mini USB optical mouse - 2 Targus SD card readers

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #35 on: April 12, 2007, 09:57:27 pm »
Okay.  Thanks for the specifics.  Anything that will make PM attachment downloading possible.

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 #36 on: April 13, 2007, 01:13:36 am »
Quote
The url for the attachment is the same whether I do a "Save as" bookmark, or just click on the link and fetch it from my history:
Code: [Select]
http://www.oesf.org/forums/index.php?act=Attach&type=msg&id=4312 
See those ampersands (&)? When you use wget the shell will interpret them as run this job in the background. So basically what you're doing is essentially:

Code: [Select]
wget http://www.oesf.org/forums/index.php?act=Attach&
ie you're telling wget to get the file
Code: [Select]
http://www.oesf.org/forums/index.php?act=Attach which of course doesn't exist.

The correct way to download using wget is to simply wrap the url in quotes:
Code: [Select]
wget "http://www.oesf.org/forums/index.php?act=Attach&type=msg&id=4312"
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #37 on: April 13, 2007, 02:30:45 am »
desertrat,
It was my understanding that preceding a special character with a backslash has the same effect as double quote marks, and they work that way in wget for me the rest of the time.

But I tried your suggestion, just in case I was wrong, and got the exact same error screen.   Sigh.

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 #38 on: April 13, 2007, 04:36:29 am »
Quote
It was my understanding that preceding a special character with a backslash has the same effect as double quote marks, and they work that way in wget for me the rest of the time.
Sorry, you're right, I overlooked that  

OK having re-read the thread it seems you're having trouble downloading a PM attachment using wget? Well I would assume (expect) that the forum software would check that you're logged in before allowing you to download a PM attachment, this is usually done through cookies. wget has no idea about what cookies your current browser session has stored, that's why you get a rather cryptic error message. You might try using the --load-cookies option (if you can persuade your browser to cough up a suitable file).
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Fix The Attachments
« Reply #39 on: April 13, 2007, 01:18:38 pm »
Quote
Well... I noticed with with IE there isnt an issue with images... but downloading ipk's was the issue still...

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


the server is sending the wrong content-type header, ie text/html instead of multipart or octet-stream ...
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

sdjf

  • Sr. Member
  • ****
  • Posts: 447
    • View Profile
    • http://www.sdjf.wordpress.com and http://www.sdjf.esmartdesign.com
Fix The Attachments
« Reply #40 on: April 13, 2007, 02:48:11 pm »
I'll try using the load cookies option, thanks.

I tried again in Opera, and it's clear to me as menaie points out, that it's a server issue.  The same file downloads just fine (with a download dialogue box) from gmail when on the web in opera, and spews out onto my screen if I try to retrieve it from the PM it is in.

I can, btw, currently download zip attachments from forum posts without a problem, so I think there must be something different about the config for PMs and public posts.

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

InSearchOf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1144
    • View Profile
    • http://
Fix The Attachments
« Reply #41 on: April 26, 2007, 08:18:23 pm »
Quote
Quote
Well... I noticed with with IE there isnt an issue with images... but downloading ipk's was the issue still...

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


the server is sending the wrong content-type header, ie text/html instead of multipart or octet-stream ...
[div align=\"right\"][a href=\"index.php?act=findpost&pid=158747\"][{POST_SNAPBACK}][/a][/div]

I'm still looking into this now... I noticed this problem didnt occur until PHP got upgraded....

   .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.

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

Drake01

  • Full Member
  • ***
  • Posts: 226
    • View Profile
Fix The Attachments
« Reply #42 on: April 26, 2007, 09:14:48 pm »
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).
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

Meanie

  • Hero Member
  • *****
  • Posts: 2803
    • View Profile
    • http://www.users.on.net/~hluc/myZaurus/
Fix The Attachments
« Reply #43 on: April 27, 2007, 01:06:27 am »
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 ?
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

desertrat

  • Hero Member
  • *****
  • Posts: 743
    • View Profile
    • http://
Fix The Attachments
« Reply #44 on: April 27, 2007, 04:23:39 am »
Quote
Well... I noticed with with IE there isnt an issue with images... but downloading ipk's was the issue still...
That's because IE is pathetically bugged in that it looks at the file .ext instead of acting on the mime-type.
SL-C3100 / Ambicon WL1100C-CF / pdaXrom 1.1.0beta3 / IceWM