1
datamile
wfsection 1.01 and downloads
  • 2004/6/19 6:59

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Hi,

I've got some article attachments, but when I click to download them. I just see the source on the browser. It looks like a mime type thing.

Tried .doc and .txt

Any clues ?

Ian

2
brash
Re: wfsection 1.01 and downloads
  • 2004/6/19 7:13

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


If you access the file directly via it's URL instead of going through Xoops, does it still do the same thing?

3
datamile
Re: wfsection 1.01 and downloads
  • 2004/6/19 7:45

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Direct appears to work

http://www.go-share.com/modules/wfsection/cache/uploaded/721214.doc

attached here doesn't

http://www.go-share.com/modules/wfsection/article.php?articleid=18

I think its the mime types causing a problem

4
brash
Re: wfsection 1.01 and downloads
  • 2004/6/19 9:16

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Yep, you be correct with your assumption there datamile. However, this is not any problem with XOOPS or WF-Section. Mime types are set on the web server (IIS, Apache, etc...) so you'll need to alter/add the relevant mime types there. Internet Explorer is no the best browser to test this in as it makes certain "assumptions" when there is not mime type set on the server. If you try your direct download link with Mozilla or Firebird, you get a message saying that the browser doesn't know how to handle the file. Meaning the mime type for that extension is not set.

5
datamile
Re: wfsection 1.01 and downloads
  • 2004/6/19 11:19

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Can they be turned off so that the user is offered a straight download ?

Guess I will have to look at the code.


6
brash
Re: wfsection 1.01 and downloads
  • 2004/6/19 12:05

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


In your case it is more likely that they aren't configured at all, rather than misconfigured. Do you know what type of webserver you use?

7
datamile
Re: wfsection 1.01 and downloads
  • 2004/6/19 12:44

  • datamile

  • Just popping in

  • Posts: 22

  • Since: 2002/11/24


Its apache, and all setup correctly as far as I know.

Curl run on the server with headers on gives

HTTP/1.1 200 OK
Date: Sat, 19 Jun 2004 13:11:16 GMT
Server: Apache/1.3.31 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2 mod_bwlimited/1.4 PHP/4.3.7 FrontPage/5.0.2.2634a mod_ssl/2.8.18 OpenSSL/0.9.6b
X-Powered-By: PHP/4.3.7
Set-Cookie: PHPSESSID=ec05b512bb3ee2fbd0a95aa6c0cb502d; path=/
Expires: Mon, 26 Jul 1997 05:00:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Content-Length: 31744
Content-Disposition: attachment; filename="goshare1.doc"
Last-Modified: Sat, 19 Jun 2004 13:11:16 GMT
Cache-Control: post-check=0, pre-check=0
Content-Type: application/msword



ÐÏࡱá>þÿ

Login

Who's Online

251 user(s) are online (138 user(s) are browsing Support Forums)


Members: 0


Guests: 251


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits