Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Uploading files  into database
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Uploading files into database

 Post Reply Post Reply
Author
ckwan View Drop Down
Newbie
Newbie
Avatar

Joined: 09 July 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ckwan Quote  Post ReplyReply Direct Link To This Post Topic: Uploading files into database
    Posted: 09 July 2003 at 1:50pm

Is there a feature to upload files and store them into the MS SQL database of version 7.01?  I am looking to protect uploaded files from unregistered users and not exposed as part of the website's directory.

If not, is there a MOD or an example on how to do this?

Thanks,
Calvin



Edited by ckwan
Back to Top
sespark View Drop Down
Newbie
Newbie
Avatar

Joined: 13 February 2003
Location: United States
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote sespark Quote  Post ReplyReply Direct Link To This Post Posted: 09 July 2003 at 6:09pm
To be honest, I think you're either really ambition or insane.  There is an easier way to do this.  You can use the built File up stuff and store the links to the uploaded files in the database, or you can use a data definition or an OLE Wizard.  I know you can use OLE Wizard to store pictures in Access, but I have never really played around with it in Micrsoft SQL Server.  You're probably going to have to use a binary read off of Request.Form and some other fancy manuveurs.  Good luck!  You'll need it.
Back to Top
ckwan View Drop Down
Newbie
Newbie
Avatar

Joined: 09 July 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ckwan Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2003 at 6:27pm

ASP Fast Forum has this feature, but we are not interested in its UI.
http://www.aspfastforum.com/aspfastforum/ 

Stored file paths means pointing to files on the website which is not as secured as retrieving it from the database

Feature request to have this option added?

Calvin

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2003 at 5:08am

If you can gain access to a website then odds are you'll be able to access the database, be it SQL or Access, since the connection details will be generaly stored in your code.

You're better off storing it on the website and ensuring the those security settings are set correctly.

Cheers,
Andrew



Edited by Bunce
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2003 at 11:06am
The reasons for not storing files and images in the database is that it is very bad on performance and as the size of the database increases the whole forum will slow down.
Back to Top
ckwan View Drop Down
Newbie
Newbie
Avatar

Joined: 09 July 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote ckwan Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2003 at 11:23am

Thanks, where can I find more information on the best practices for securing files on a website? 

The forum that we are looking to create is for private members only, so performance might not be such an issue. There will no open subscription to this forum.  That is why we don't want uninvited eyes to crawl/browse the site and find the files.

What I am looking to do is display the name of the attachment in the posted message, and then when they want to download it, write it out of the database in a new window, like you would be doing at a shareware website.  So this shouldn't be slowing down the forum since there are no files being downloaded?  

If this feature will not be added in the future, I will have to solve it myself...

Thanks,
Calvin

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.