Web Wiz - Green Windows Web Hosting - Celebrating 25 Years!

  New Posts New Posts RSS Feed - image upload and user folders...
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

image upload and user folders...

 Post Reply Post Reply
Author
ohiopbx View Drop Down
Groupie
Groupie


Joined: 21 February 2005
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote ohiopbx Quote  Post ReplyReply Direct Link To This Post Topic: image upload and user folders...
    Posted: 25 April 2006 at 2:23am
am i missing something? whenever i upload an image it just puts it in /uploads not /uploads/username
am i missing something? is there something i have to turn on?
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: 25 April 2006 at 9:22am
That is correct.

The reason for this is a new image/file upload system is used, whereby images and files uploaded are attached to posts and are now deleted when the post is deleted.

The 'username' work around in version 7.x was only used because images and files where not deleted when the post was deleted.
Back to Top
ohiopbx View Drop Down
Groupie
Groupie


Joined: 21 February 2005
Location: United States
Status: Offline
Points: 124
Post Options Post Options   Thanks (0) Thanks(0)   Quote ohiopbx Quote  Post ReplyReply Direct Link To This Post Posted: 25 April 2006 at 1:47pm
ic, so when a user uploads an image to the forum it just goes in "uploads/" and not uploads/username. Cool thanks for the clearification borg.
 
Also borg can we use your upload feature for other things? if so do you have an example? What i want to do is have ppl be able to upload a "banner" to my site.
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: 26 April 2006 at 10:13am
You can use the upload code if you want, but as it's quite complex to deal with multiple components, it maybe simpler just to use an example from the site the download component you are using comes from.
Back to Top
GhOs+ View Drop Down
Groupie
Groupie


Joined: 02 January 2005
Location: United States
Status: Offline
Points: 115
Post Options Post Options   Thanks (0) Thanks(0)   Quote GhOs+ Quote  Post ReplyReply Direct Link To This Post Posted: 30 April 2006 at 7:23pm
Version 8 is simply fantastic! I noticed a couple issues with the image/file upload feature I thought I'd bring to your attention:
 
1. if the post is edited (img uploaded is removed, for example), the file remains on the server. shouldn't the file get deleted as it gets when the post is deleted?
 
2. if i rename a ZIP file to .jpg or any other acceptable graphic format, the forum will allow it. Though it isn't viewable in the post (there is an image with a red "X"), if I right click that image and copy the URL, I can get that file. is there some kind of way to check the validity of a file if it is a graphic file other than by its extension? for example, maybe you can check for the file's resolution, if the value doesn't exist, don't save the upload to the server.
 
 
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: 02 May 2006 at 12:19pm
1. Although if you edit the post and remove the link to the image/file it remains on the server, it will still be deleted when you delete the post. This is due to the image/file name being stored in a separate fields in the database and not a part of the link in the post.

2. Only safe file/image types are allowed within the forum for security reasons, but there isn't a way to eaisly check the content type in ASP
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.