Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
dada  
#1 Posted : Friday, January 11, 2008 3:53:03 AM(UTC)
dada

Rank: Newbie

Groups: Member
Joined: 1/9/2008(UTC)
Posts: 5

hi ,
sorry for l 'English, would I like to send upload.aspx of the parmetris to the page external type gallerypath = ".. /.. /.. / public/gallery / ", as must the code be inserted in default.aspx? and as the value it is read in upload.aspx?

ex. upload.aspx


Code:
<%@ Import Namespace="System.IO" %>  
<%@ Import Namespace="System.Xml" %>  
  
<script runat="server">  
	'This variable specifies relative path to the folder, where the gallery with uploaded files is located.  
	'Do not forget about the slash in the end of the folder name.  
	  
 	' Private galleryP As String = "../../../public/Gallery/"  
 	Private galleryPath As String = & Request.form["galleryP"] 
thanks

Edited by user Monday, February 25, 2008 3:54:24 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Friday, January 11, 2008 12:33:07 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Administration
Joined: 8/3/2003(UTC)
Posts: 998

Hello,

AddField method – is it what you need?

Edited by user Monday, February 25, 2008 6:21:08 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
dada  
#3 Posted : Friday, January 11, 2008 5:43:28 PM(UTC)
dada

Rank: Newbie

Groups: Member
Joined: 1/9/2008(UTC)
Posts: 5

in default.aspx

........
<script type="text/javascript">
//<![CDATA[
function ImageUploader_BeforeUpload(){

getImageUploader("ImageUploaderID").AddField(galleryp, "../../../public/Gallery/");


}

......

iu.addParam("Action", "upload.aspx");

iu.addEventListener("BeforeUpload", "ImageUploader_BeforeUpload");



in upload.aspx

<%@ Page Language="VB" AutoEventWireup="false" Debug="true" ValidateRequest="false" %>

<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="System.Xml" %>



<script runat="server">
'This variable specifies relative path to the folder, where the gallery with uploaded files is located.
'Do not forget about the slash in the end of the folder name.

Private galleryPath As String = "<%=request.form("galleryp")%>"


.......

where is the error ?


Alex Makhov  
#4 Posted : Sunday, January 13, 2008 2:22:32 PM(UTC)
Alex Makhov

Rank: Advanced Member

Groups: Administration
Joined: 8/3/2003(UTC)
Posts: 998

Hello,
May be you should better use "galleryp" instead of galleryp (no quotation marks specified)
Code:
getImageUploader("ImageUploaderID").AddField("galleryp", "../../../public/Gallery/");

Edited by user Monday, February 25, 2008 4:00:26 PM(UTC)  | Reason: Not specified

Sincerely yours,
Alex Makhov

UserPostedImage Follow Aurigma on Twitter!
dada  
#5 Posted : Monday, January 14, 2008 5:44:07 AM(UTC)
dada

Rank: Newbie

Groups: Member
Joined: 1/9/2008(UTC)
Posts: 5

thanks ok
Users browsing this topic
Similar Topics
mysql database add params (Discussions – ActiveX/Java Uploader)
by dada 1/14/2008 5:47:29 AM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.