Rename Without Insert
I have Pure ASP Upload and then Rename After Upload extension. I don't use Insert Record Server Behavior - the rename does not work.
Answer:
Well if you specify a redirect URL on the Pure ASP Upload - the Rename will never get executed. The way to solve this is leave the After Upload, Go to field empty.
Then go to the source, look up the "Rename Files After Upload" code block and insert a new code block after it for the redirect:
<%
'Redirect after upload and rename
If (CStr(Request.QueryString("GP_upload")) <> "") Then
Response.Redirect "theNextPage.asp"
end if
%>
DISCLAIMER:
This is extra complimentary content which purpose is to show additional usage that is not part of the product, i.e. it suggests tips for extending the functionality of the product by the users themselves.
It is provided "as is", without warranty of any kind, express or
implied , including but not limited to the warranties of
merchantability, fitness for a particular purpose and nonfringement of
third party rights.
DMXzone does not take responsibility to
support the suggested content to be fully compatible and working as
intended and does not provide support for extended functionality which
is not included in the current release of the extension.
It is highly recommended that only more advanced developers use it.
Comments
Not working...
' *** Rename Uploaded Files 1.7.0
If (CStr(Request.QueryString("GP_upload")) <> "") Then
Dim REUF_path, REUF_nameConflict, REUF_renameMask
REUF_path = ""
REUF_nameConflict = "uniq"
REUF_renameMask = Session("ssUsername") & "##name##.##ext##"
RenameUploadedFiles REUF_path,REUF_nameConflict,REUF_renameMask
end if
%>
You must me logged in to write a comment.