Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
UBBDev.com
UBBWiki.com
Who's Online
5 registered (Stan, Outdoorking, Dunny, Pilgrim, SteveS), 35 Guests and 7 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 05/22/12
Posts: 2
Top Posters (30 Days)
Ruben 49
DennyP 24
Gizmo 23
Dunny 18
SteveS 14
AllenAyres 12
dbremer 10
SD 9
drkknght00 9
driv 8
Latest Photos
OK Corral Shoot Out
Testing
Basildon Train Station
Basildon Town Centre looking from the rounderbout
Basildon Town Square
Page 1 of 2 1 2 >
Topic Options
#174123 - 01/17/07 09:20 PM Attachment not found
ntdoc Offline
Registered: 11/09/06
Posts: 3384
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
Express Hosting
Express Hosting "We are the official hosting company of UBB.threads. Ask us about our free migration services to migrate your UBB.threads installation."
#174126 - 01/17/07 09:25 PM Re: Attachment not found [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
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?
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#174131 - 01/17/07 09:46 PM Re: Attachment not found [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
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 10:02 PM Re: Attachment not found [Re: ntdoc]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
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 03:14 AM Re: Attachment not found [Re: ntdoc]
jgeoff Offline
Pooh-Bah
Registered: 08/08/06
Posts: 1922
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.5.6)
2007 Content Rulez Contest - Hon Mention
UBB.classic 6.7.2 - RIP
Browsers: Chrome, Firefox, & Safari (Win7 and iPhone); No IE, ever!
Top
#174185 - 01/18/07 04:37 AM Re: Attachment not found [Re: jgeoff]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
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 04:50 AM Re: Attachment not found [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
sounds more like an IIS issue to me :shrug: never heard of such a thing on a *nix server lol
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175398 - 01/24/07 05:13 AM Re: Attachment not found [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
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 05:19 AM Re: Attachment not found [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
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
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175402 - 01/24/07 05:22 AM Re: Attachment not found [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
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
#175405 - 01/24/07 05:34 AM Re: Attachment not found [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
 Originally Posted By: ntdoc
@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.
this would be hard, considering the risk of file collisions...
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
#175499 - 01/24/07 03:14 PM Re: Attachment not found [Re: Gizmo]
ntdoc Offline
Registered: 11/09/06
Posts: 3384
Well I've not programmed in PHP but have worked in VB and we setup an FTP program that assigned a unique number to files so the user would never know the real file name so they could not manually download the file and there were over 5 million files and none of them were an issue with same file name even though users could upload/download files.

Can't say I've ever been on a system that handled files this way (not saying there are not other apps out there that don't, but none that come to mind).

I see it as a very easy task using MySQL and auto generated unique keys. Add a file it gives it a unique name, but also stores what the 'REAL' name is and even if it has to do a temporary file rename or something it then gives the user back the file with the REAL name.
Top
#175504 - 01/24/07 03:20 PM Re: Attachment not found [Re: ntdoc]
Gizmo Offline

Registered: 06/05/06
Posts: 14994
Loc: Portland, OR; USA
I think the file manager needs severely updated, it's way too basic at current; its one of th emany things on my huge feature list request ;\)
_________________________
Forums: UGN Security & VNC Web Design & Development
UBB.Threads: UBB.Wiki, My UBBSkins, UBB.Sitemaps
Longtime UBB Supporter, UBB Beta Tester & Resident Post-A-Holic.
UBB Modifications, Styling, Coding Services, Disaster Recovery, and more!
Top
Page 1 of 2 1 2 >



Moderator:  AllenAyres, Harold, Ian, Ron M 
Shout Box

Today's Birthdays
No Birthdays
Recent Topics
Ability to "like" individual posts (not Facebook "likes)
by doug
05/23/12 09:03 AM
Island Permissions
by ThreadsUser
05/22/12 03:03 PM
streaming video
by prkrgrp
05/20/12 07:02 PM
New Posts Corrupted? Can someone help?
by PianoWorld
05/19/12 09:41 AM
Custom forum permissions
by ntdoc
05/18/12 02:07 PM
Forum Stats
10489 Members
36 Forums
33841 Topics
181698 Posts

Max Online: 978 @ 06/24/07 11:19 PM
Random Image