Advanced Multi Uploader Support Product Page

Answered

AMU 302 error

Asked 23 Feb 2014 10:19:29
1
has this question
23 Feb 2014 10:19:29 Paolo Cognetti posted:
Sorry for my poor english
This is my page code .
All work fine the image are uploaded and resized but i've a 302 error in Flash AMU panel . Can you help me?
Thanks
Paolo

----

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="www.w3.org/1999/xhtml">

<!--#include file="../../../Connections/mercatino.asp" -->
<!--#include file="../../../ScriptLibrary/incSIP2Class.asp" -->
<!--#include file="../../../ScriptLibrary/incPU3Class.asp" --><!--#include file="../../../ScriptLibrary/incPU3Utils.asp" -->

<%
'*** Pure ASP File Upload 3.1.1
' 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.TimeOut = 20000
pau.ConflictHandling = "uniq"
pau.StoreType = "file"
pau.ProgressTemplate = "html5.htm"
pau.ProgressWidth = 350
pau.ProgressHeight = 150
pau.UploadFolder = """../../../foto_upload/foto_mercatino"""
pau.ProcessUpload
pau.SaveAll
pau.RedirectUrl = "scheda_modifica.asp?ID=" & Request.QueryString("id"
%>

<%
' Smart Image Processor 2.5.7
Dim sip1
Set sip1 = New ImageProcessor
sip1.Key = "9053943E-8AA8-4907-8B41-BE6929CB3503"
sip1.ScriptFolder = "../../../ScriptLibrary"
sip1.Component = "Auto"
sip1.Source = "upload"
sip1.AutoOrient = false
sip1.KeepMetaData = false
sip1.Matte = "#FFFFFF"
sip1.UploadFields = ""
sip1.GetFiles
While sip1.HasFiles
sip1.LoadFromSource
sip1.ResizeEx 1200, 800, true, false
sip1.Overwrite = true
sip1.SaveJPEG 80
sip1.MoveNext
Wend
Set sip1 = Nothing
%>

<%
Dim MM_editAction
MM_editAction = CStr(Request.ServerVariables("SCRIPT_NAME")
If (UploadQueryString <> "" Then
MM_editAction = MM_editAction & "?" & Server.HTMLEncode(UploadQueryString)
End If

' boolean to abort record edit
Dim MM_abortEdit
MM_abortEdit = false
%>
<%
' IIf implementation
Function MM_IIf(condition, ifTrue, ifFalse)
If condition = "" Then
MM_IIf = ifFalse
Else
MM_IIf = ifTrue
End If
End Function
%>
<%
If (CStr(UploadFormRequest("MM_insert") = "UploadQueue" Then
If (Not MM_abortEdit) Then
' execute the insert
Dim MM_editCmd

Set MM_editCmd = Server.CreateObject ("ADODB.Command"
MM_editCmd.ActiveConnection = MM_mercatino_STRING
MM_editCmd.CommandText = "INSERT INTO foto (foto, idmoto) VALUES (?, ?)"
MM_editCmd.Prepared = true
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 250, UploadFormRequest("Filedata") ' adVarWChar
MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 5, 1, -1, MM_IIF(UploadFormRequest("id", UploadFormRequest("id", null)) ' adDouble
MM_editCmd.Execute
MM_editCmd.ActiveConnection.Close

' append the query string to the redirect URL
Dim MM_editRedirectUrl
MM_editRedirectUrl = "scheda_modifica.asp"
If (UploadQueryString <> "" Then
If (InStr(1, MM_editRedirectUrl, "?", vbTextCompare) = 0) Then
MM_editRedirectUrl = MM_editRedirectUrl & "?" & UploadQueryString
Else
MM_editRedirectUrl = MM_editRedirectUrl & "&" & UploadQueryString
End If
End If
Response.Redirect(MM_editRedirectUrl)
End If
End If
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Documento senza titolo</title>
<link href="/css.css" rel="stylesheet" type="text/css" />
<link rel="shortcut icon" href="favicon.ico">
<link rel="icon" type="image/gif" href="animated_favicon1.gif">
<script type="text/javascript"><%=pau.generateScriptCode()%></script>
<script src="../../../ScriptLibrary/incPU3.js" type="text/javascript"></script>
</head>

<body class="txt9" >
<p><strong>Goldwing Point - Modulo di gestione mercatino</strong></p>
<form ACTION="<%=MM_editAction%>" name="UploadQueue" id="UploadQueue" method="POST">
<input type="hidden" name="Filedata" />

<input name="id" type="hidden" id="id" value="<%request.QueryString("id"%>" />
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,63,0" width="550" height="350" id="upload1" align="middle">
<param name="FlashVars" value="<%=pau.flashvars()%>&formName=UploadQueue" />
<param name="movie" value="dmxMultiUploader.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<!--[if !IE]>-->
<embed src="dmxMultiUploader.swf" name="upload1" quality="best" flashvars="<%=pau.flashvars()%>&formName=UploadQueue" wmode="transparent" type="application/x-shockwave-flash" width="550" height="350" pluginspage="www.macromedia.com/go/getflashplayer" />
<!--<![endif]-->
</object>
<script type="text/javascript">window.upload1 = document.forms["UploadQueue"].upload1;</script>
<input type="hidden" name="MM_insert" value="UploadQueue" />
</form>
<p>&nbsp;</p>
</body>
</html>

Replies

Replied 24 Feb 2014 08:25:32
24 Feb 2014 08:25:32 Teodor Kuduschiev replied:
Hello,
Please remove the remove the redirection set in AMU settings and the issue will be solved.

Reply to this topic