Limiting Users Files in a Database...

This is a discussion on "Limiting Users Files in a Database..." within the Classic ASP section. This forum, and the thread "Limiting Users Files in a Database... are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > Classic ASP

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old May 12th, 2005, 19:54
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Limiting Users Files in a Database...

I need to know how to upload files into a database. What I want to do is have where every member gets 10 files, 5 pictures and 5 songs. I don't know how to go about doing this and any help is much appreciated.

  #2 (permalink)  
Old May 12th, 2005, 21:47
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Quite simply - Don't!

Don't store files in databases! It makes your databases a lot bigger when there's no need to do it. Instead, store the path to the image and use that, along with a count to do whatever it is you need to do...
  #3 (permalink)  
Old May 13th, 2005, 07:00
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
Unless you pictures, song or files need captions, or some other metadata, then you wont even need to involve a database.

have 3 folders, pictures, files, songs. inside each folder have a foldername equal to the unique id or username. then using the filesystemobject, only allow 5 files in each folder.
__________________
Rob - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
  #4 (permalink)  
Old May 13th, 2005, 15:30
Reputable Member
Join Date: Sep 2004
Posts: 144
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks guys, I'll look into that FSO stuff.
Closed Thread

Tags
limiting, users, files, database

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Limiting While Loops Weird1993 Databases 5 Jul 12th, 2007 04:33
Limiting a while loop? Weird1993 Databases 1 May 10th, 2007 19:51
uploading multiple files path in the database franknu PHP Forum 4 Jan 23rd, 2007 15:37
users online, users loggedin benbacardi PHP Forum 3 Jul 5th, 2005 22:14


All times are GMT. The time now is 15:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43