Forums

ASP

This topic is locked

Pure ASP File Upload 2.1.6

Posted 22 May 2006 18:40:07
1
has voted
22 May 2006 18:40:07 Kessa Thomas posted:
Hi All,

This is my first post here and I'm fairly new to .asp so please... be gentle <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

For a few years now I've been using <b>Pure ASP File Upload 2.1.6</b> as the image upload facility on my website. However I have never been able to get the a) resize facility and b) progress bar to work and so wondered if I am missing some code somewhere?

I haven't included the full code here (as looking at other posts here the code seems pretty similar), but at the moment the first section looks like this (let me know if you need to see the whole thing):


<pre id=code><font face=courier size=2 id=code>
'*** Pure ASP File Upload 2.1.6
Dim GP_uploadAction,UploadQueryString
PureUploadSetup
If (CStr(Request.QueryString("GP_upload") &lt;&gt; "" Then
Dim pau_thePath, pau_Extensions, pau_Form, pau_Redirect, pau_storeType, pau_sizeLimit, pau_nameConflict,
pau_requireUpload, pau_minWidth, pau_minHeight,pau_maxWidth, pau_maxHeight,pau_saveWidth,
pau_saveHeight,pau_timeout, pau_progressBar, pau_progressWidth, pau_progressHeight
pau_thePath = """photos"""
pau_Extensions = ".gif,.jpg,.jpeg,.bmp"
pau_Form = "form1"
pau_Redirect = ""
pau_storeType = "file"
pau_sizeLimit = "250"
pau_nameConflict = "uniq"
pau_requireUpload = "false"
pau_minWidth = "200"
pau_minHeight = "200"
pau_maxWidth = "600"
pau_maxHeight = "600"
pau_saveWidth = "300"
pau_saveHeight = "300"
pau_timeout = "600"
pau_progressBar = "upload.htm"
pau_progressWidth = "400"
pau_progressHeight = "150"
Dim RequestBin, UploadRequest
CheckPureUploadVersion 2.16
ProcessUpload pau_thePath, pau_Extensions, pau_Redirect, pau_storeType, pau_sizeLimit, pau_nameConflict,
pau_requireUpload, pau_minWidth, pau_minHeight,pau_maxWidth,pau_maxHeight,
pau_saveWidth, pau_saveHeight, pau_timeout
end if
</font id=code></pre id=code>

I've managed to get a very basic "Your images are uploading " message to display in place of the progress bar, but it would be nice to use the full functionality.

Also, as you can see I've changed the width and height for the save settings but nothing happens - I've done a search for other occurances of "pau_saveWidth", "pau_saveHeight" and "pau_progressBar" but can't find any other mention of them (with the exception of where they are declared)

Any help would be really appreciated!

Thanks
Kessa


Edited by - kessa on 25 May 2006 14:53:44

Edited by - kessa on 25 May 2006 14:55:07

Edited by - kessa on 25 May 2006 14:56:00

Replies

Replied 23 May 2006 11:59:04
23 May 2006 11:59:04 Kessa Thomas replied:
Anyone? - George - can you help with this?

Thanks
Kessa
Replied 23 May 2006 13:43:00
23 May 2006 13:43:00 Patrick Woldberg replied:
Some errors I found in your code:

pau_Extensions = ".gif,.jpg,.jpeg,.bmp"
Should be:
pau_Extensions = "gif,jpg,jpeg,bmp"

pau_saveWidth = "300" is not correct, this should not be a number but the name of a hidden field that should hold the result.
Some is for the pau_saveHeight

You can find tutorials at www.dmxzone.com/showDetail.asp?TypeId=2&NewsId=5791

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 23 May 2006 14:01:29
23 May 2006 14:01:29 Kessa Thomas replied:
Hi Patrick,

Thanks, I've corrected the file format as suggested. The link you provided was also a great help. I was originally under the impression that the savewidth and saveheight values would allow me to dynamically resize the image but would I be correct in thinking that this is not the case? If so, do you know how I can physically resize the image prior to saving to the DB (as I don't want to have to save massive files which will eat up my storage allowance)?

Also, does anyone have the script for either the "DHTML Progress Bar" or the "File Copy Progress Bar"(or an alternative Ajax solution would be quite cool?)

Thanks
Kessa

PS - <b>Feedback for the moderator / site owner</b>
I'm using IE6 and have problems viewing the forum. The right hand column appears over the top of the forum text.
Also, the forward / back links in the articles at www.dmxzone.com/showDetail.asp?TypeId=2&NewsId=5791&LinkFile=tutorials/upload_with_progress/index.htm don't work

Hope that helps?
Replied 24 May 2006 16:17:12
24 May 2006 16:17:12 Patrick Woldberg replied:
The extension only does the upload. To resize an uploaded image you can use the Smart Image Processor. To see if the Smart Image Processor is supported by your server you can first check with www.dmxzone.com/go?3984.

The problem with the right column is because it is positioned using css and the content in the post (the code used in the first post here) makes the forum to wide. Will see what we can do about it.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 24 May 2006 18:39:27
24 May 2006 18:39:27 Kessa Thomas replied:
Hi Patrick,

The server has aspjpeg installed and supports the smart image processor. Do you know what I would need to add in order for the resize to work? Also, do you know if this physically resizes the image, or whether it just specifies different dimensions for it?

Also, thanks for the info about the right hand column (I hope the feedback was useful <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> ) - I'll bear that in mind when creating other posts and will try to ensure the code isn't too wide.

Cheers
Kessa
Replied 25 May 2006 15:00:54
25 May 2006 15:00:54 Kessa Thomas replied:
Hi Patrick,

I've just edited the code above so that it resolves the width/column issue for the post <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

About the issue itself:
I was wondering if you had any other feedback regarding the resize issue?
Also, when I removed the "." from the extension list I got an error message saying:

"Filetype is not allowed, only gif,jpg,jpeg,bmp are allowed"

When I changed back the extentions to "."<i>whatever</i>, it worked fine - am I missing something? (i.e. - do I need to specify them in upper case or something?)

Cheers
Kessa
Replied 27 May 2006 18:24:48
27 May 2006 18:24:48 Kessa Thomas replied:
Patrick.... anyone?
Replied 29 May 2006 12:45:27
29 May 2006 12:45:27 Patrick Woldberg replied:
You can find a manual for aspjpeg at www.aspjpeg.com/manual.html for when you want to do the programming yourself, or you could purchase the Smart Image Processor for the resizing. The Smart Image Processor is an addon for the Pure ASP Upload and resizes the files that where uploaded, it can not used seperate.

About the extension problem, did you check what happens if you try to upload files with an other extension then the one that is allowed, just to check.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 31 May 2006 18:42:47
31 May 2006 18:42:47 Kessa Thomas replied:
Hi Patrick,

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
You can find a manual for aspjpeg at www.aspjpeg.com/manual.html for when you want to do the programming yourself, or you could purchase the Smart Image Processor for the resizing.
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I've taken a look at the manual and although I can just about make out what is going on with the asp jpeg side of things, I can't figure out how this interacts with the pure upload script (As mentioned at the beginning of this post I'm fairly new to .asp and have had to jump in at the deep end)

Also, I don't have a copy of the original version of Pure ASP Upload as the original setup was done by a web designer. I'm trying to avoid buying a copy of the whole bundle as I hear version 3 will soon be out and so I'm looking for a interim fix if at all possible.

<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
About the extension problem, did you check what happens if you try to upload files with an other extension then the one that is allowed, just to check
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>

I've not been able to check yet as I can't get Firefox to run through IIS (which would allow me to turn off the Javascript) but I would guess that it isn't working (with the "." as the javascript has not been working until recently and people have been able to upload files in the wrong format.

However, if I remove the "." then nothing can be uploaded (I get "Filetype is not allowed, only gif,jpg,jpeg,bmp are allowed" which is even worse.... it seems to be a case of either / or - another reason why I'm keen to purchase version 3 when it's released! <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

If someone could let me know what code I need to add for the resize as a short term fix it would be a huge help!

Cheers
Kessa

Replied 01 Jun 2006 11:24:20
01 Jun 2006 11:24:20 Patrick Woldberg replied:
The extension check is probably a bug in version 2.1.6, Contact the web designer who created your page to send you the latest version of the incPureUpload.asp, then it should be working.

--------------------------------------------------
Patrick Woldberg
Web Developer at Dynamic Zones
Administrator at DMXzone.com, FLzone.net, FWzone.net and DNzone.com
--------------------------------------------------
Replied 09 Jun 2006 12:25:44
09 Jun 2006 12:25:44 Kessa Thomas replied:
Hi Patrick,

Unfortunately the guy who did the original coding of our website is no longer around (which is a shame as I may have been able to have obtained the full set of files)

I don't suppose anyone here may be able to help? (would I also need a copy of the latest corresponding JS files?)

Cheers
Kessa

PS - is there a date yet of when the latest version will be out.
Replied 13 Jun 2006 13:13:41
13 Jun 2006 13:13:41 Kessa Thomas replied:
anyone... please?

Reply to this topic