Pure ASP Upload 3 Support Product Page

This topic was archived

Flash Upload Problem (http 500 error)

Asked 31 Dec 2007 21:07:57
1
has this question
31 Dec 2007 21:07:57 Baub Eis posted:
I'm pulling my hair out on this one:

I've set up a test page 216.106.25.130/boat_flash_test.asp

it should upload pics and then update the database. It actually uploads the images to the folder that it is intended to go. But I get a http 500 error. and the database isn't updated.

Any Ideas? I see a few other people having this issue, can someone PLEASE HELP!!!!!!!!!!!!

Thanks in advance
Baub

Replies

Replied 01 Jan 2008 19:12:31
01 Jan 2008 19:12:31 Baub Eis replied:
ok, I searched the log files of the webserver and it says I have a lbound type mismatch?

The file upload works. when used alone, ie I remove the insert record.

any clues guys, I'm dying here!

Baub
Replied 02 Jan 2008 16:05:19
02 Jan 2008 16:05:19 Kiril Iliev replied:
Hi Baub,

This does not seem to be issue if Pure ASP Upload 3 Flash Control.

The error can only be resolved by fixes to the Web server software. It is not a client-side problem. It is up to the operators of your Web server site to locate and analyze the logs which should give further information about the error.

Regards,


DMX Zones Support Team
Replied 02 Jan 2008 16:47:59
02 Jan 2008 16:47:59 Baub Eis replied:
Well I notice that I'm not the only one on here having this problem. Any clues where to look? Or where to start?

I tried the scripts on two different hosting companies that I use.

The main one is windows 2000 server with IIS 5. I really could use some insight here. Some sort of direction. Other than its not our fault. What servers are you guys using that it runs on? Please Please I need some sort of insight. The only reason I upgraded to 3 was so that I could do this and it wont work!

I mean the flash upload works by itself, the insert record works by itself, but they don't work together? How can that be a hosting issue? What are the server requirements are they listed on here somewhere? Like minimimal requirements or anything?

Edited by - baub on 02 Jan 2008 17:07:45
Replied 02 Jan 2008 18:21:14
02 Jan 2008 18:21:14 Baub Eis replied:
Ok, I updated the MDAC (microsoft data access components) to 2.8 and updated the .net framework. Don't really know where else to look....
Replied 05 Jan 2008 14:26:45
05 Jan 2008 14:26:45 George Petrov replied:
Hi Baub,


To see what the real problem is the following might help:

<ol type=1>
<li> Make sure you have Firefox (www.getfirefox.com) and also the Firebug debugger installed (www.getfirebug.com)</li>

<li> Open Firefox - make sure Firebug is enabled.</li>

<li> Open the page using test page in Firefox</li>

<li> Do the upload so that the errors occur </li>

<li> Open Firebug (either from the menu's or from the green icon in the right side of the status bar in Firefox)</li>

<li> Go to the tab "Net" to see all downloads - make sure that "All" is selected so you see all kind of files</li>

<li> Locate the call to the asp file -giving the error 500</li>

<li> Click on it and then choose the "Response" tab</li>

<li> There you should be able to see what error the asp page gives</li>

<li> If it isn't something you can't fix - post it here so we can have a look - note that it might be an error displayed in html codes ... so look trought the html for the real error</li>
</ol id=1>

Hope this helps.

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 01 Feb 2008 16:31:51
01 Feb 2008 16:31:51 Helle M replied:
Looking at the Flash upload page in Firefox, I get this:

Microsoft VBScript runtime error '800a01fb'

An exception occurred: 'ProcessUpload'

C:\client\WEB-xxx\xxxxx.DK\WWW\xxx\../ScriptLibrary/incPU3Class.asp, line 648

I too get nothing but errors...... Please George - HELP

Helle <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>
Replied 01 Feb 2008 19:24:12
01 Feb 2008 19:24:12 Helle M replied:
NOT using Flash upload, but trying to resize file to 800x600 and again resize to 130 x 100 I get:

Microsoft VBScript runtime error '800a01fb'

An exception occurred: 'ProcessUpload'

C:\xxx\WEB-xxx\xx.DK\WWW\xxxx\../ScriptLibrary/incPU3Class.asp, line 648

Why has the extension been modified when it comes to thumbnails - I really liked that I could make a resize and at the same time create a thumbnail....

Now nothing works????

What the "heck" does that line 648 mean ?

Please........... anybody?

Edited by - Helle on 01 Feb 2008 19:25:31
Replied 05 Feb 2008 12:40:28
05 Feb 2008 12:40:28 loz howlett replied:
I have exactly the same problem - the file uploads to the server fine (i.e. i can see the file on the correct folder) however the flsdh gives me a HTTP:500 error and says not uploaded, thus FileData isNull and I have nothing to insert into the database to log the file upload!

I can see many people having this problem and no fix is available... whats the problem with the scripting?? This needs sorting asap!

Thanks

Loz
Replied 05 Feb 2008 17:29:13
05 Feb 2008 17:29:13 Helle M replied:
Okay - have reinstalled the old Pure Upload 2.2 - but not the add on

Now I get:

shotgraph.image.1 error '80020009'

The ReadImage method is available in the registered version of ShotGraph only

xxx.DK\WWW\xxx\../ScriptLibrary/incSIP2Class.asp, line 1363

*eeevvvvvvvvvvvvvvvvvvv*
Replied 05 Feb 2008 20:29:58
05 Feb 2008 20:29:58 George Petrov replied:
Hi Helle,

Sorry for the delay in reply. I must have missed this topic.

Anyway, first are you using the latest version of PAU3 and SIP2?

Then as seen from the last SIP error - you have Shotgraph as resize component, and it seems you don't have the full version installed.

Maybe you can just choose as component ASP.NET

let me know how it goes.

Greetings,
George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 05 Feb 2008 20:35:32
05 Feb 2008 20:35:32 George Petrov replied:
Also what is the page encoding you use?

Could you make sure you are using Unicode (UTF-8) on your asp page?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 05 Feb 2008 21:13:52
05 Feb 2008 21:13:52 Helle M replied:
Now I get after choosing ASPImage as component:

Request object error 'ASP 0208 : 80004005'
Cannot use generic Request collection
/xxx/Album_NewPix.asp, line 108
Cannot use the generic Request collection after calling BinaryRead.

I'm trying to create a resized version and a thumnail and also have the widht and height in the database.

I have &lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%&gt; this at the top

I use Pure ASP Upload 3 - 3.09
Smart Image Process 2.0.4

Helle <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> *glad you are here*
Replied 05 Feb 2008 21:33:23
05 Feb 2008 21:33:23 George Petrov replied:
Hi Helle,

Please choose ASP.NET as image resize component not ASpImage.

Also just choose page properties, then encoding and then select Unicode (UTF-8)
This should result in

&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;

as well:

&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 05 Feb 2008 21:40:08
05 Feb 2008 21:40:08 Helle M replied:
I get this:

Image Processor: Component AspNet could not be loaded
Please make sure that the component AspNet is installed.

evvvvvvv

this what they have:

- ASPMail
- ASPPop3
- AspLib
- ASPHttp
- ASPDNS
- AspImage
- HTML
- Javascript
- Flash

Helle <img src=../images/dmxzone/forum/icon_smile_sad.gif border=0 align=middle>


Tried with you mods exept the component - which is ASPImage:

Request object error 'ASP 0208 : 80004005'
Cannot use generic Request collection
/xxx/Album_NewPix.asp, line 108
Cannot use the generic Request collection after calling BinaryRead.

line 108:

If (Request("IDAlbum" &lt;&gt; "" Then


Edited by - Helle on 05 Feb 2008 21:57:53
Replied 05 Feb 2008 22:13:18
05 Feb 2008 22:13:18 George Petrov replied:
Helle,

For you error see this FAQ: www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=1091

For the ASP.NET resize, please make sure that:

* ASP.NET is installed on the server
* your site root is an ASP.NET "Application" , something like:
www.iisworks.com/faq/kb.asp?a=show&ID=164

Greetings,
George



--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 05 Feb 2008 22:47:17
05 Feb 2008 22:47:17 Helle M replied:
so is short.........

the extension CANNOT work without ASP.NET ??

The provider for this client of mine don't offer much as you can see - I'm I in trouble here? *s*

Regards Helle <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>

okay - tried to correct the form thingy to:
&lt;input name="Pixheight" type="hidden" id="Pixheight" value="&lt;%= UploadFormRequest("Pixheight" %&gt;

now I get:
Microsoft VBScript runtime error '800a01fb'
An exception occurred: 'ProcessUpload'
xxx\xxxx/ScriptLibrary/incPU3Class.asp, line 648

Helle *loosing faith*


Edited by - Helle on 05 Feb 2008 23:05:40
Replied 06 Feb 2008 16:32:21
06 Feb 2008 16:32:21 George Petrov replied:
Hi Helle,

The SIP does not need ASP.NET to work - it just gives the best results if ASP.NET is available (also ASP.ET is free ...)

So you can use ShotGraph (if you have full version installed on the server), or ASPImage if you have it.
The second best after ASP.NET is ASPJpeg - (www.aspjpeg.com)

For the other exception error - did you set your page to unicode?

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------
Replied 06 Feb 2008 17:45:44
06 Feb 2008 17:45:44 Helle M replied:
Yes - did what you told me too *of course*

this in the top:
&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;
also this:
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;


Now I am moving there website to another hosting company that supports ASP.NET (same as my own)

Is there a tutorial where I can see how to change where thumbnails are saved to? I have tried to change the path thingy - but it did not go well....
all I got to work is: ##path####name##_small.jpg

Also I am having trouble showing my thumbnails? I created a Folder list - but I don't believe it works the same way anymore - or??

PS: a complete tutorial on inserting height and width into the database after resizing would be great...

Helle .-)
Replied 07 Feb 2008 20:28:37
07 Feb 2008 20:28:37 Helle M replied:
okay - new provider that supports ASP.NET

Made a Flash upload - get 500 error in MS Explorer 7, but the picture gets uploaded both the resized version and the thumbnail.
Trying the very same page in FireFox, no errors, but worse NO picture gets uploaded!!!

<b>Mutual for both is that NOTHING gets to the database?? Great - yeaaa!</b>

How the h... do you guys make this work?
When I hit the Flash upload button - it starts showing a green process - fine - but the insert record and the redirect afterwards does happend, why??? Should there be another submit button or where am I going off too?

Please dear George - how come have you made this wonderfull extension so hard to work with?

HELP

Replied 17 Feb 2008 23:13:26
17 Feb 2008 23:13:26 Harold Feist replied:
I too get error 500 saying files failed upload. The file does NOT upload nor get written to the db. This is a file that has uploaded ok before but fails now. No, I've deleted the file from the server beforehand so it is not an overwrite problem.

Firebug says:

var PU3_ERR_EXTENSION = 'Filetype is not allowed, only %1 are allowed.';

var PU3_ERR_REQUIRED = 'File is required!';&lt;/script&gt;

No idea what this means...
Replied 18 Feb 2008 02:50:03
18 Feb 2008 02:50:03 Harold Feist replied:
As if this wasn't enough now there is a maddening problem of the files seeming to upload ok but ending up as size zero
Replied 21 Nov 2008 00:03:09
21 Nov 2008 00:03:09 Cain Goettelman replied:
I am getting HTTP Error 500 when trying to write to dynamic directory using the following code:

&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;
&lt;!--#include file="ScriptLibrary/incPU3Class.asp" --&gt;
&lt;!--#include file="ScriptLibrary/incPU3Utils.asp" --&gt;
&lt;%
'*** Pure ASP File Upload 3.0.12
' Process form upload1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "ScriptLibrary"
pau.ConflictHandling = "over"
pau.StoreType = "file"
pau.ProgressTemplate = "circle.htm"
pau.ProgressWidth = 500
pau.ProgressHeight = 150
pau.UploadFolder = """images/designs"" & Request.Form(""DirectoryList"" & ""/"""
pau.AllowedExtensions = "GIF,JPG,JPEG,BMP,PNG" ' "images"
pau.ProcessUpload
pau.SaveAll
%&gt;&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Design Upload&lt;/title&gt;
&lt;script src="Scripts/AC_RunActiveContent.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;&lt;%=pau.generateScriptCode()%&gt;&lt;/script&gt;
&lt;script src="ScriptLibrary/incPU3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;%=pau.UploadFolder%&gt;
&lt;form id="form1" name="form1" method="post" action=""&gt;
&lt;script type="text/javascript"&gt;
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','name','upload1','width','450','height','300','align','middle','id','upload1','src','ssl/ssAdmin/dmxPureUpload','quality','best','flashvars','&lt;%=pau.FlashVars()%&gt;','scale','noscale','wmode','transparent','pluginspage','www.macromedia.com/go/getflashplayer','movie','ssl/ssAdmin/dmxPureUpload' ); //end AC code
&lt;/script&gt;
&lt;noscript&gt;
&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" name="upload1" width="450" height="300" align="middle" id="upload1"&gt;
&lt;param name="FlashVars" value="&lt;%=pau.FlashVars()%&gt;" /&gt;
&lt;param name="movie" value="ssl/ssAdmin/dmxPureUpload.swf" /&gt;
&lt;param name="quality" value="best" /&gt;
&lt;param name="scale" value="noscale" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;embed src="ssl/ssAdmin/dmxPureUpload.swf" width="450" height="300" id="upload1" quality="best" flashvars="&lt;%=pau.FlashVars()%&gt;" scale="noscale" wmode="transparent" type="application/x-shockwave-flash" pluginspage="www.macromedia.com/go/getflashplayer" name="upload1" /&gt;
&lt;/object&gt;
&lt;/noscript&gt;
&lt;input type="hidden" name="Filedata" /&gt;

&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

The output from this line of code:
&lt;%=pau.UploadFolder%&gt; is equal to: images/designs/Test_Upload/

The exact same code without the dynamic path works perfectly.

&lt;%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%&gt;
&lt;!--#include file="ScriptLibrary/incPU3Class.asp" --&gt;
&lt;!--#include file="ScriptLibrary/incPU3Utils.asp" --&gt;
&lt;%
'*** Pure ASP File Upload 3.0.12
' Process form upload1
Dim pau, DMX_uploadAction, UploadRequest, UploadQueryString, pau_thePath, pau_nameConflict, pau_saveWidth, pau_saveHeight
Set pau = new PureUpload
pau.ScriptLibrary = "ScriptLibrary"
pau.ConflictHandling = "over"
pau.StoreType = "file"
pau.UploadFolder = """images/designs/test_upload/"""
pau.ProcessUpload
pau.SaveAll
%&gt;
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;script src="Scripts/AC_RunActiveContent.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;&lt;%=pau.generateScriptCode()%&gt;&lt;/script&gt;
&lt;script src="ScriptLibrary/incPU3.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;%=pau.UploadFolder%&gt;
&lt;form id="form1" name="form1" method="post" action=""&gt;
&lt;script type="text/javascript"&gt;
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','250','height','150','id','upload1','align','middle','src','dmxPureUpload','quality','best','flashvars','&lt;%=pau.FlashVars()%&gt;','scale','noscale','wmode','transparent','pluginspage','www.macromedia.com/go/getflashplayer','movie','dmxPureUpload' ); //end AC code
&lt;/script&gt;&lt;noscript&gt;&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="250" height="150" id="upload1" align="middle"&gt;
&lt;param name="FlashVars" value="&lt;%=pau.FlashVars()%&gt;" /&gt;
&lt;param name="movie" value="dmxPureUpload.swf" /&gt;
&lt;param name="quality" value="best" /&gt;
&lt;param name="scale" value="noscale" /&gt;
&lt;param name="wmode" value="transparent" /&gt;
&lt;embed src="dmxPureUpload.swf" id="upload1" quality="best" flashvars="&lt;%=pau.FlashVars()%&gt;" scale="noscale" wmode="transparent" type="application/x-shockwave-flash" width="250" height="150" pluginspage="www.macromedia.com/go/getflashplayer" /&gt;
&lt;/object&gt;&lt;/noscript&gt;
&lt;input type="hidden" name="Filedata" /&gt;

&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;

So I seem to have it boiled down to the dynamic path for the save, however the variable for this appears to be correct. Since the static path works correctly I know that I don't have a permissions issue.

can anyone shed some light on what is potentially wrong with the uploadfolder string:
pau.UploadFolder = """images/designs"" & Request.Form(""DirectoryList"" & ""/"""

Thank you in advance for your reply
Replied 21 Nov 2008 00:07:06
21 Nov 2008 00:07:06 Cain Goettelman replied:
I noticed a type-O in the first section of code.
The UploadFolder should be:
pau.UploadFolder = """images/designs/"" & Request.Form(""DirectoryList"" & ""/"""

The first post was missing the / after designs. The code still does not work.
Replied 21 Nov 2008 02:33:01
21 Nov 2008 02:33:01 Cain Goettelman replied:
OK - after a lot of testing I definitely have the issue boiled down to this line of code:

pau.UploadFolder = """images/designs/"" & Request.Form(""DirectoryList"""

I have created a page that the user first selects the directory they want to upload files into.
This page POSTS the selected value to the page with the multi-upload form on it.
I am using Request.Form to receive the name of the directory under (images/designs/) that new files need to be saved to.

The Upload script runs and reports that the images have been uploaded. When I check the directory on the server there are NO files.
If I hard code the path to the directory everything works fine.

So what I am missing about the UploadFolder path?

FYI - I also test UploadFormRequest but since the data is not be posted from inside the PureASP upload call it does not work. I am guessing this is an issue specific to advance multi upload because I can get the code to work with just Pure ASP Upload sending one file at a time.

I also want to note that my next step is to add SIP2 call to resize the uploaded images into 2 new sizes.

Thanks your the reply.

Cain
Replied 21 Nov 2008 09:10:50
21 Nov 2008 09:10:50 George Petrov replied:
Hi Cain,

Please see this FAQ

www.dmxzone.com/showDetail.asp?TypeId=7&NewsId=1091

You should use UploadFormRequest instead of Request.Form

George

--------------------------------------------------
George Petrov - Founder of the Dynamic Zones
DMXzone.com, FWzone.net, FLzone.net, CFzone.net,
DNzone.com, FlashFiles.nl
--------------------------------------------------

Reply to this topic