Shop OBEX P1 Docs P2 Docs Learn Events
Attaching .spin files — Parallax Forums

Attaching .spin files

BradCBradC Posts: 2,601
edited 2009-03-18 14:53 in General Discussion
Why is it some forum users appear to be able to attach spin files, while I have to rename them .txt or zip them to get the forum to accept them?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-03-14 03:23
    Brad,

    You must not be a President's Club Key Member, which surprises me quite frankly. Unfortunately, initiations are held only once a year at the Winter Solstice. But the good news is that the nomination period for next December is currently open. I'm still waiting to be tapped. Perhaps you'll be more fortunate.

    Good luck!

    -Phil

    P.S. It's rumored that members are allowed up to six uploads per post!
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-03-14 17:29
    All flippancy aside, I thought it might be the presence of Unicode characters that made the difference, but apparently not. Which browser are you using? I use Opera and don't have a problem uploading .spin files. Also, does the forum software itself give you an error message, or does the file get bumped before it reaches the server? 'Just wondering if it's an outgoing firewall issue.

    -Phil
  • BradCBradC Posts: 2,601
    edited 2009-03-16 10:07
    Phil Pilgrim (PhiPi) said...
    All flippancy aside, I thought it might be the presence of Unicode characters that made the difference, but apparently not. Which browser are you using? I use Opera and don't have a problem uploading .spin files. Also, does the forum software itself give you an error message, or does the file get bumped before it reaches the server? 'Just wondering if it's an outgoing firewall issue.

    -Phil

    No, it's the forum software rejecting attachments of type application/x-extension-spin

    I'm using Firefox, but on Linux.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
    1600 x 1200 - 121K
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-03-16 14:55
    It's your browser. The forum software is ignoring the extension completely and going by the MIME type assigned to the file by Firefox. There may be an option in Firefox to reset the MIME type for .spin files to text/plain, which will allow them to be uploaded.

    -Phil
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-03-17 13:45
    I'm not sure if this will help or not, having experienced the problem on and off.
    I've discovered that removing the spaces from the filenames appears to make forum
    uploads a lot more friendlier. I've been replacing them with underscores.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2009-03-17 15:58
    Not sure it's the browser... Firefox seems to work ok from my PC, and I don't remember messing with any of the MIME configurations, just using the default settings.


    Running Fedora9 with FireFox browser

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-03-17 16:51
    It's the browser. In Opera, I just changed the MIME association of my .spin files to application/x-extension-spin, and I got the same message Brad did. If I delete the association from Opera's Preferences entirely or include spin under text/plain, the file uploads just fine.

    -Phil
  • Oldbitcollector (Jeff)Oldbitcollector (Jeff) Posts: 8,091
    edited 2009-03-17 17:48
    @Beau:

    When i tried to download that file (from Firefox under Ubuntu) it tried to save
    the file with the First word only, no extension. "Firefox" That's why I ditch
    the spaces in my attachments.

    OBC

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    New to the Propeller?

    Check out: Protoboard Introduction , Propeller Cookbook 1.4 & Software Index
    Updates to the Cookbook are now posted to: Propeller.warrantyvoid.us
    Got an SD card connected? - PropDOS
  • SRLMSRLM Posts: 5,045
    edited 2009-03-18 05:05
    With Chrome it doesn't allow .spin upload at all... Unfortunate.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-03-18 06:59
    Again, this is simply a matter of setting the MIME type for .spin files to text/plain. I haven't used Chrome, but most all browsers have a Preferences or Options pull-down that lets you change the file associations. There is probably already one for text/plain, associated with txt. All you would have to do in that case is add spin to it and delete the current MIME type for Spin files (e.g. application/x-extension-spin) from the list.

    -Phil

    Here's an example from Opera on OS-X:

    attachment.php?attachmentid=59434

    Post Edited (Phil Pilgrim (PhiPi)) : 3/18/2009 7:09:25 AM GMT
    621 x 455 - 56K
  • BradCBradC Posts: 2,601
    edited 2009-03-18 12:50
    Added...

    type=text/plain desc="Spin file" exts="spin"

    to ~/.mime.types

    that fixed it.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cardinal Fang! Fetch the comfy chair.
  • SRLMSRLM Posts: 5,045
    edited 2009-03-18 14:53
    I can't find any sort of 'advanced' tab for Chrome, and the tabs that I have are all dull stuff (webpage preferences, history types, etc...) Anyway, I just use IE to upload files if I need to.

    edit: I just took a look around the hard drive and chrome files, but nothing struck me as a MIME data file and the Chrome help site isn't all that helpful...

    Post Edited (SRLM) : 3/18/2009 3:08:46 PM GMT
Sign In or Register to comment.