Print Page | Close Window

ASP Simple Upload Revisited

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=780
Printed Date: 30 March 2026 at 4:36am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Simple Upload Revisited
Posted By: xeerex
Subject: ASP Simple Upload Revisited
Date Posted: 06 March 2003 at 2:06pm

borg,

I know this topic has been addressed a couple of times already. However, my host refuses to install any other components. I don't want to gripe about them much since this is the only negative issue that I've had with them.

I understand your concerns on security issues and fill overwriting problems. However, is there any chance you will consider supporting it? If you answer no, then I understand and can use a separate upload page to do a workaround, but incorporating it into the forum would be better.

Maybe if borg doesn't want to support it then some of the ASP wizzes could do a mod?

Thanks to all for the continued support!

Long live borg!




Replies:
Posted By: WebWiz-Bruce
Date Posted: 06 March 2003 at 2:42pm

I did look at AspSimple Upload and started to write the code for it, but I found that there where multiple problems including:-

noway of preventing files or images from being overwritten
noway of telling how big a file or image is

This means that not only can people overite others files but also they could upload files as big as 100Mb or more which could course your web host to be rather upset with you.

The AspSimple Upload component is just that the only features that it allows you to do is upload a file and get the file name, apart from that it doesn't really have any other features.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: xeerex
Date Posted: 06 March 2003 at 3:20pm

Ok. Thanks for the reply and I understand the problems for releasing it with the board.

In my case, I'd just have my host modify the directory permissions to create only. They also have a server timeout of 1 min on the upload script which prevents potentially huge files from being uploaded. I suppose someone on a t1 or broadband could still get a decent file uploaded though, but on my limited users I can take that risk since I'd have the forum set for only certain forums to allow uploads which would be restricted to particular groups.

Anyway, thanks borg. Keep up the good work.

If anyone comes up with a mod for this, please post it!



Posted By: eaglesexec
Date Posted: 06 March 2003 at 8:40pm

borg this is not true of asp simple upload component. my friend made a file uploading library for me using the asp simple upload component obviously. the file size could not be limited this is true. file extensions could. plus my host automatically doesnt accept file uploading of files more than 500KB unless they are uploaded through the ftp account anyway! so the file limit isnt a problem, for me at least.

also my friend made it so that if the file name exists in the DB it will tell the user: File already exists on the server. Please Rename and Re-Upload. and it works just fine. if u want i can show you the code for all of this. the only sad thing is that he didnt integrate it with the webwiz forums. he said he could try but since he didnt give me guarantees i told him to leave it alone. now since ur the master of your own code maybe u could be the one to add it up.

anyway if u want the code i am currently using just tell me and i will be happy to forward it.

u can catch the live version at http://www.eaglesclan.com/aocupload.asp - http://www.eaglesclan.com/aocupload.asp  but unregistered members cant upload...



Posted By: michael
Date Posted: 06 March 2003 at 8:59pm
but this would mean quit a few changes to accomodate this component. I don't think it would worth it, just do it as a mod.


Posted By: xeerex
Date Posted: 06 March 2003 at 9:05pm

If someone could do it as a mod, I would certainly appreciate it. That is far beyond my simple skills in ASP...at least for now.

Either way, Eagle could you email me the source code for your upload? It's far better than my simple script. If no one does a mod, I can incorporate that script to the forum as a separate page using the forum security.

mailto:rex@rexpage.com - rex@rexpage.com or post a link to it.



Posted By: boyohboy
Date Posted: 06 March 2003 at 9:20pm

hey dude eagleclan person

do you play starcraft/broodwar, cuz i see you are in RTS.

nice site. Gave me alot of ideas about designing.



-------------
Visit my community website @
http://www.everythingviet.com - EverythingVIET.com


Posted By: boyohboy
Date Posted: 06 March 2003 at 9:26pm
damn, eagleclan people must have eyes of eagle too see the size of those fonts.

-------------
Visit my community website @
http://www.everythingviet.com - EverythingVIET.com


Posted By: eaglesexec
Date Posted: 06 March 2003 at 11:53pm

-xeerex,

the upload script i got is highly customized and very very tricky i am told. anyway i will email it to u right now but dont ask me anything about it. lol. it wasnt me who wrote it...

-to boyohboy:

sorry about the small font. lol. nobody has complained and personally i am quite comfortable with it... i dunno though.

anyway no we dont play starcraft. only Age Of Empires II: The Conquerors and Age Of Mythology. we are really looking forward to new rts Rise of Nations. few members play StarCraft, Empire Earth, and War3 but we never got around to forming teams for those games cuz they arent played regularly enough.



Posted By: WebWiz-Bruce
Date Posted: 07 March 2003 at 3:21am
Originally posted by eaglesexec eaglesexec wrote:

borg this is not true of asp simple upload component. my friend made a file uploading library for me using the asp simple upload component obviously. the file size could not be limited this is true. file extensions could. plus my host automatically doesnt accept file uploading of files more than 500KB unless they are uploaded through the ftp account anyway! so the file limit isnt a problem, for me at least.

also my friend made it so that if the file name exists in the DB it will tell the user: File already exists on the server. Please Rename and Re-Upload. and it works just fine. if u want i can show you the code for all of this. the only sad thing is that he didnt integrate it with the webwiz forums. he said he could try but since he didnt give me guarantees i told him to leave it alone. now since ur the master of your own code maybe u could be the one to add it up.

anyway if u want the code i am currently using just tell me and i will be happy to forward it.

u can catch the live version at http://www.eaglesclan.com/aocupload.asp - http://www.eaglesclan.com/aocupload.asp  but unregistered members cant upload...

I know that file extensions can be got as you can get the file name, the problem is that you can't set file size and as the names of files arn't stored in the database you can't check to see if it exsists that way. I would also not want to store file names in the database as this would add extra overhead to the forum thuse slowing it down. 



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: eaglesexec
Date Posted: 07 March 2003 at 9:16am
oh no the files arent stored in the DB at all...  :-)  they are stored in an upload directory...  their names are stored in the DB. just the name. so when u get a duplicate entry the DB will tell you that u need to rename it.  it doesnt actually check in the uploads directory...  honestly i got the code that works right here if u dont believe me.  what else can i say?


Posted By: WebWiz-Bruce
Date Posted: 07 March 2003 at 9:43am

Please read my post again as I think you are missreading it.

I'm not talking about storing the files in the db, nor will I store the names in the db, although I know it can be done, the reason for this is that it would effect performance.

Simply put, unless you write it yourself for your forum there will NOT be support for AspSimple Upload.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: xeerex
Date Posted: 07 March 2003 at 10:03am

borg,

Thanks for the replies and I understand your concerns. I'll work on my simple upload page and try to intregate it with the forum somehow as I did on a v6.34 board.

If someone does a mod, then great. If not, thats ok too.

===========

Eagle,

Thanks for emailing me the script. I'd have to do some serious mod's to get that to work and the script is beyond my skills right now. Whoever wrote it appears to be pretty sharp!



Posted By: eaglesexec
Date Posted: 07 March 2003 at 7:58pm

borg i am not really asking anything. i mean i was clear on the subject of asp simple upload not being added to this forum about a month ago when i asked the question. i am just making discussion.

and what is this about file names adding extra overhead??? u know i may be wrong but arent the file names just stored as simple text? as if it was a post for example??? whats so extra overhead about that?? anyway i dont want to take ur time with this because it is pointless. if there isnt a reply i wouldnt mind at all. 



Posted By: WebWiz-Bruce
Date Posted: 08 March 2003 at 5:54am

It would require extra overhead as it would require a new completly new table just to store the names of files in for this one component, each new table, field, data, etc. in the db adds extra overhead, also there would still be the problem of not being able to check the file sizes.

This would then in turn leave the forum open to security problem, two of the biggest consideration when making the forum is security and performance, by including this component it will break both of these.

I would then get loads of emails and posts accusing me of making an insecure forum becuase people have been hacked because they have enabled uploading using this component, in turn it will make the forum look insecure and open to hackers.

I shall however look into maybe using the FSO object with AspSimple Upload to see if that would allow me to get over the limitations of AspSimple Upload.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: xeerex
Date Posted: 08 March 2003 at 10:52am

borg,

Thanks for at least looking back into it. For my part, I would much prefer the security and performance first and foremost.



-------------
http://webspacegeeks.com - Need Hosting, Domains, Dedicated Servers?
http://www.smartergeek.com - web design | pc support | training | podcasts | video production


Posted By: WebWiz-Bruce
Date Posted: 14 March 2003 at 9:05am

I have relooked at AspSimpleUpload and by using this with the FSO object I have found away to get the file size and name. So AspSimpleUpload will be supported in the next beta.

But you will need to have AspSimpleUpload and not have the FSO object disabled by your web host in order to use it.



-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: eaglesexec
Date Posted: 14 March 2003 at 1:58pm

-boRg- you honestly rock!

Applauses everyone please!




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net