Skip to main content
GameDev.net gamedev.net
🔒 Locked

GDNet+ Attachments

Started by Michalson Aug 13, 2004 at 12:41 PM 1 replies 200+ views
Original Post
Michalson
Michalson
To add more value to our GDNet+ service without actually having to add any true new services, perhaps we could place an upload box(s) on the new topic/new reply page for premium members. When they click post it would save the file(s) to their webspace, and then append the text of their message to include a hyperlink to the file(s). While we wouldn't really be adding a new service, it would make using the webspace for hosting forum attachments a one step process, which I think our users would percieve as a very good value (in fact I think we could get a number of people to signup based on the fact that you could "attach" files to your post automatically, even though it was technically possible with GDNet+ before)
Michael Tanczos
Michael Tanczos
Sounds good to me. I suppose we could either create an attachments subdirectory in their directory and save to that, or save to their root directory. I think a directory called "attach" may be easier organization wise.

The process would have to work like this:

handletopic.asp page and handlereply.asp page for default post types will:
1) Check to see if the logged in user is a premium member
2) If yes, then check to see if their web space is created
3) Create upload input box

post_info.asp page will:
1) Check to see if the user is a premium member
2) If yes, then check to see if their web space is created
3) If yes, then check to see if the attach subdir is created
4) If yes, check to make sure that size of file + hosting_accounts.hst_spaceused does not exceed 25 megabytes
5) If it does exceed 25 megabytes, generate error saying that file would exceed maximum disk quota
6) If it does not exceed 25 megabytes, save it and append a link to that file in the message.


That being said.. would editing of posts allow them to update / change that attachment? That could get tricky I think.

---
Michael Tanczos
Michalson
Michalson
The only way to handle editing I think would be to enclose the end link with special comments. We could then strip out that section and display a link that lets you either keep the file or replace it (which would mean we would need an option to delete the old file)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.