I am just wondering why you can only post attachments with certain extensions? I mean seriously whats the point? What if I want to distribute my .emacs file or my .xmodmap file or my .xinitrc file? What if someone wants to post a tar.gz or a tar.bz2 archive?
Sturm
270
Veteran Poster
Recommended Answers
Jump to PostIt's all about the *NIX hate. ;)
Jump to PostAttachments are stored in the database in the BLOB (binary string) format. Therefore, when fetched from the database, it's necessary for DaniWeb's script to pass back the appropriate mime type based on the file extension. If the attachment has a .gif extension, for example, I am going to pass 'Content-type: …
Jump to PostAt least uploading a file without extension should be allowed.
But then it wouldn't be able to be opened by any Windows machine.
Jump to PostThat's the whole point I'm trying to make. Every part of DaniWeb should be accessible the same way regardless of what platform someone is using. There shouldn't be an attached file that can be accessible by Linux users and not by Windows users, for example.
Jump to PostI have to say that I agree with Dani. Your initial examples -- .emacs, .xmodmap, .xinitrc -- what does it matter? They're all text files. Does not having the exact filename affect the reader's ability to comprehend?
The way I see it, the extension is a universal way of …
All 20 Replies
Narue
5,707
Bad Cop
Team Colleague
Sturm
270
Veteran Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Sturm
270
Veteran Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Sturm
270
Veteran Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Sturm
270
Veteran Poster
John A
1,896
Vampirical Lurker
Team Colleague
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Sturm
270
Veteran Poster
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
John A
1,896
Vampirical Lurker
Team Colleague
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Sturm
270
Veteran Poster
Chaky
191
Posting Virtuoso
Dani
4,084
The Queen of DaniWeb
Administrator
Featured Poster
Premium Member
Chaky
191
Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.