Print Page | Close Window

File & image upload improvement...

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums Suggestions
Forum Description: Do you have any ideas for applications or content on Web Wiz? Then leave your suggestions here.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2998
Printed Date: 29 March 2026 at 2:58pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: File & image upload improvement...
Posted By: fernan82
Subject: File & image upload improvement...
Date Posted: 24 May 2003 at 7:22pm
It would be nice if instead of storing the uploaded files in a folder by the username they could be prefixed with the thread id and that whenever the post gets deleted the files get deleted too, would that be too much to ask?

-------------
FeRnAN
http://www.danasoft.com/">



Replies:
Posted By: WebWiz-Bruce
Date Posted: 26 May 2003 at 9:01am
It wouldn't be possible as the thread ID does not exsit till the post is submitted, file and image uploads are done before the file is submitted.

-------------
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: ljamal
Date Posted: 26 May 2003 at 10:27am
But it is possible to rename the file after upload and after the post has been made. Renaming files is a FileSystemObject method and if you have enough permissions to upload you should be able to rename and later delete the attachment.

If I get some time later, maybe I will script this as a MOD. I can see how this could be useful because it provides a means of easily identifying the file as well as clearing web space. No reason to have the file if the thread is not there.

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: WebWiz-Bruce
Date Posted: 26 May 2003 at 11:53am

I know you can use the FSO object to rename files but it's not as simple as that.

Uploaded files and images don't have there names stored in the database or in a sepperate text box, so you would then have the probalem of trying to identify an uploaded file or image from within a post get the directory name, change the derectroy name, then change the link within the post.

Also many server admins disable the FSO object for security reasons, if this is the case then these people will not be able to use the upload functions, this is why I try to stay away from using the FSO object.



-------------
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: fernan82
Date Posted: 26 May 2003 at 12:01pm

Originally posted by -Borg- -Borg- wrote:

It wouldn't be possible as the thread ID does not exsit till the post is submitted, file and image uploads are done before the file is submitted.

rite, i didn't taught about it, maybe if you prefix them with the Session ID you can keep track of them and then rename them after the thread id once the post is submitted as ljamal suggested...

<edit> well nevermind, after reading your last post i see my suggestion is no good niether as you would also have to use the FSO....



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: ljamal
Date Posted: 26 May 2003 at 12:22pm
I've never known a host to disable the FileSystemObject and why would they disable FSO and allow file uploads?

I haven't looked at the file upload structure since I don't use it, but ...

To circumvent the FSO altogether you could just change the order of the upload and post and rename the image during the upload which now occurs after the post. Is there no current system to clean up attachments?

-------------
L. Jamal Walton

http://www.ljamal.com/" rel="nofollow - L. Jamal Inc : Web/ Print Design and ASP Programming


Posted By: fernan82
Date Posted: 26 May 2003 at 8:57pm

I might just write a script that go thru the database looking for links to each uploaded file, if it don't find a link to it in the db it would then delete it.... and i'll just run the script once in a while.....

 



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: fernan82
Date Posted: 26 May 2003 at 9:27pm

We better be happy with what we got, if we don't like anything about the forum we can always mod it and it's free so what more can we ask?

Besides Borg gets a little emotional when we criticize it's ways, i notice the other topic about the polls got locked so i ain't even gonna bother anymore with anything like this.............



-------------
FeRnAN
http://www.danasoft.com/">


Posted By: Necronom
Date Posted: 27 May 2003 at 10:03am

no sh*t? wouldn't you? borg's the sh*t and he makes some bad ass stuff just for people to go "hey, do this, do that".

I think Borg should turn all his scripts to donataion only for a day and then see how many people bitch.

...sorry, had to vent.

. necronom .



-------------
http://www.BodyMod.org - Body Modification Organization


Posted By: fernan82
Date Posted: 27 May 2003 at 7:33pm
Originally posted by Necronom Necronom wrote:

no sh*t? wouldn't you? borg's the sh*t and he makes some bad ass stuff just for people to go "hey, do this, do that".

I think Borg should turn all his scripts to donataion only for a day and then see how many people bitch.

...sorry, had to vent.

. necronom .

You don't even know what you're talking about..... this forum is called Suggestions for Web Wiz Guide, somebody made a suggestion and the topic got locked, that didn't seemed right to me, maybe i should have kept it to myself but what's said is said......

I do thank Borg for all the work he put into the forums and his other free apps...



-------------
FeRnAN
http://www.danasoft.com/">



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