Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
2 registered (Ruben Rocha, smallufo), 15 Guests and 20 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 01/29/08
Posts: 20
Top Posters (30 Days)
Ruben Rocha 159
Rick 116
Gizmo 105
Thelockman 61
driv 50
AllenAyres 38
ScriptKeeper 32
Mark S 30
Ian 30
ntdoc 24
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Page 1 of 2 1 2 >
Topic Options
Rate This Topic
#174123 - 01/17/07 06:20 PM Attachment not found
ntdoc Offline

***

Registered: 11/08/06
Posts: 3193
I have an attachment that a user attached that appears to create an invalid link for it.

http://www.kixtart.org/forums/attach/15-Users.DBF.ini

The file exists at that location so it was uploaded correctly and the system has permissions to access the file so not sure exactly what's wrong.

It appears that files can't be downloaded from there but images can.

http://kixtart.org/forums/attach/8-SizeVBS.PNG

On another note it would appear that UBB is putting a number in front of the uploaded attachment. Why?

Okay just did a test of my own. It seems that the link for anything besides an image won't donwload.

http://www.kixtart.org/forums/ubbthreads.php?ubb=download&Number=16

If you click that link you get
http://www.kixtart.org/forums/attach/16-Users.DBF.ini

But it still won't download the file you get a 404 error.

.

Top
#174126 - 01/17/07 06:25 PM Re: Attachment not found [Re: ntdoc]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 11968
Loc: Portland, OR; USA
The number in front of the attachment is so there are no collisions (such as users uploading the same named images to your site).

As for the file in question; I'm thinking it's because of the extension .ini; does IIS have some directive that blocks certain filetypes from being dowloanded?
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#174131 - 01/17/07 06:46 PM Re: Attachment not found [Re: Gizmo]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3193
That's what I'm initially thinking but renamed a file to just .db and it didn't like that either.

I'll try one with a zip and see if that works.

As for the number strategy then why not just obfuscate the whole thing like most sites do.

Something like:
mysite.com/folder/^^*H#%&w208

would equal something like:
mysite.com/folder/mynewfile.zip

The filename ^^*H#%&w208 would be unique maybe use some GUID type filename creator (I'm sure PHP has something like that built-in or someone has created a script for it already)

Then the database stores that unique name AND the real name and when it downloads it to the client it renames it to the real name.

.

Top
#174133 - 01/17/07 07:02 PM Re: Attachment not found [Re: ntdoc]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3193
Well that is odd. It won't open/download a zip file either.

I'll have to investigate what's going on there.

Top
#174178 - 01/18/07 12:14 AM Re: Attachment not found [Re: ntdoc]
jgeoff Offline
Pooh-Bah

Registered: 08/08/06
Posts: 1885
Loc: NJ

Control Panel » Feature Settings » Attachments » Allowed Attachment File Extensions:

Separate with a comma.
.php,.php3,.php4,.cgi,.pl,.exe,.bat,.reg not accepted.
_________________________
GangsterBB.NET (Ver. 7.3)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Firefox 3.0, Google Chrome, & Safari 3.1 (XP and iPhone)

Top
#174185 - 01/18/07 01:37 AM Re: Attachment not found [Re: jgeoff]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3193
That is for uploads. Outside of the forum in IE/FF you can't download the file even though it's there on the server so I'm betting it's not related to UBBT and just coincidence that I found it via UBBT.

.

Top
#174193 - 01/18/07 01:50 AM Re: Attachment not found [Re: ntdoc]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 11968
Loc: Portland, OR; USA
sounds more like an IIS issue to me :shrug: never heard of such a thing on a *nix server lol
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#175398 - 01/24/07 02:13 AM Re: Attachment not found [Re: Gizmo]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3193
Well as it turns out IIS 6 does not serve up unknown MIME Types on purpose for security reasons.
http://support.microsoft.com/kb/326965

Creating MIME Types for a Web site or directory (IIS 6.0)
http://www.microsoft.com/technet/prodtec...02.mspx?pf=true

MIME Types in IIS 4/5
http://www.microsoft.com/technet/prodtec...ty/mimeiis.mspx

David Wang: HOWTO: Allow file downloads (including .exe) on IIS 6.0
http://blogs.msdn.com/david.wang/archive/2005/07/11/Allow_file_downloads_on_IIS_6.aspx

David Wang: HOWTO: Allow file downloads (including .exe) on IIS 6.0, Part 2
http://blogs.msdn.com/david.wang/archive...S-6-Part-2.aspx

David wang: HOWTO: IIS 6 Request Processing Basics, Part 1
http://blogs.msdn.com/david.wang/archive...ics_Part_1.aspx

David Wang: Why Wildcard application mapping can disable Default Document resolution
http://blogs.msdn.com/david.wang/archive...resolution.aspx

David Wang: Thoughts on IIS Security vs Apache
http://blogs.msdn.com/david.wang/archive/2005/09/30/Thoughts_on_IIS_Security_vs_Apache.aspx

David Wang: Thoughts on IIS Security vs Apache, Part 2
http://blogs.msdn.com/david.wang/archive/2005/10/01/Thoughts-on-IIS-Security-vs-Apache-Part-2.aspx


I've made the required changes and now my attachment folder allows some of the other file types to be downloaded.


.

Top
#175400 - 01/24/07 02:19 AM Re: Attachment not found [Re: ntdoc]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 11968
Loc: Portland, OR; USA
 Originally Posted By: ntdoc
Well as it turns out IIS 6 does not serve up unknown MIME Types on purpose for security reasons.
lol i'm the man
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top
#175402 - 01/24/07 02:22 AM Re: Attachment not found [Re: Gizmo]
ntdoc Offline

***

Registered: 11/08/06
Posts: 3193
Sir yes sir, I agreed it had to be IIS. Just could not see how UBBT could be involved except for the file name.

@Rick
If you can please think of another way to handle attachments without pre-pending a number to it. I would really like to see attachments retain their ORIGINAL file names like other Web apps do.

Thanks.

Top
Page 1 of 2 1 2 >


Shout Box

Today's Birthdays
Eric Flyxe, mark_l_88@yahoo.com
Recent Topics
restricting a media tag to a single forum...
by bakerzdosen
11/21/08 12:52 PM
Recover topics??
by femistyle
11/21/08 12:22 PM
duplicate entries in viewmessage.php lang file (7.4.1)
by alnadabi
11/21/08 05:54 AM
Order of variables in language files should be permanent
by alnadabi
11/21/08 05:12 AM
How do I set Moderation Queue for an individual user?
by luket
11/20/08 11:28 AM
Forum Stats
4249 Members
33 Forums
30488 Topics
154665 Posts

Max Online: 978 @ 06/24/07 08:19 PM