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

Notification

Icon
Error

Options
Go to last post Go to first unread
Mona Troy  
#1 Posted : Wednesday, January 17, 2007 6:20:31 AM(UTC)
Mona Troy

Rank: Member

Groups: Member
Joined: 1/17/2007(UTC)
Posts: 14

Hi;

These questions pertain to Image Uploader V. 4.1 (Dual).

1. We need to add a parameter to the "Action" URL, for example, "upload.aspx?AdvID=123", and need to know how to read the Action Parameter value, just to help us debug if it has been set properly or not. In other words, if we set the value of the "Action" parameter of the Image Uploader control to "upload.aspx?AdvID=123" (for example for our Advertiser ID = 123) then by using the JavaScript in the code above, how can we read the "Action" parameter value to verify that it has indeed been set to the required value "upload.aspx?AdvID=123"? Please advise.

2. We have tried using the following code for the scenario mentioned above:

Code:
getImageUploader("ImageUploaderID").setAction(value); 
value = getImageUploader("ImageUploaderID").getAction();

However, we still receive the following error:

Code:
Error: 'null' is null or not an object

Please suggest a solution.

3. In some places in your samples/website, you are using the name ("ImageUploaderID"), and in some places we saw the name ("ImageUploader1"). We have tried it both ways. It still does not work, and we continue to receive the same error (Error: 'null' is null or not an object). Please advise what is the correct name to use.

4. Also, the code behind of "upload.aspx" determines the directory path for saving the uploaded file. A different value of the parameter "AdvID" would save the uploaded file(s) in a different directory. We are receiving a pop-up that says "Upload Complete". However, when we go to look for the file it is missing from the folder (our website code determines which folder the user may upload images to, based on their ID, month, date, etc). We have already set the proper directory write permissions where the uploaded files are to be saved. Still the uploaded files are not being saved. Please advise what to do.

Thank you.

Mona.

Edited by user Tuesday, February 12, 2008 12:40:18 PM(UTC)  | Reason: Not specified

Alex Makhov  
#2 Posted : Wednesday, January 17, 2007 2:45:33 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

Quote:

1. We need to add a parameter to the "Action" URL, like, "upload.aspx?AdvID=123", and need to know how to read the Action Parameter value, just to help us debug if it has been set properly or not. In other words, if we set the value of the "Action" parameter of the Image Uploader control to "upload.aspx?AdvID=123" (for example for our Advertiser ID = 123) then using the JavaScript in the code above how can we read the "Action" parameter value to verify that it has indeed been set to the required value "upload.aspx?AdvID=123"?

You should use Get / Set values for Action property of Image Uploader as follows:

Code:
getImageUploader("ImageUploaderID").setAction(value); 
value = getImageUploader("ImageUploaderID").getAction();

Please follow the link below for more details:

http://www.aurigma.com/r...mageUploader.Action.aspx

Quote:

2. Also, the code behind of "upload.aspx" determines the directory path for saving the uploaded file. A different value of the parameter "AdvID" would save the uploaded file(s) in a different directory. We are receiving a pop-up that says "Upload Complete". However, when we go to look for the file it is missing from the folder (our website code determines which folder the user may upload images to, based on their ID, month, date, etc). We have already set the proper directory write permissions where the uploaded files are to be saved. Still the uploaded files are not being saved. Please advise what to do.

Probably you have server script errors. Please set ShowDebugWindow property to True. This will allow you to output the debug information to the server response and debug server side code.

If you can any difficulties with it, please feel free to let us know.

Quote:

3. We are trying to pop-up the following javascript box, for debugging, at the very beginning of the code behind of upload.aspx:

Code:
Response.Write("<script langauge='javascript'>alert('Test:');</script>")

Instead of this pop-up, all we receive is the "Upload Complete" pop-up. Please advise how to set a break-point at some point of the upload.aspx.vb code so that we can generate our own pop-up for debugging purposes.

Upload complete text is shown automatically and you could turn this message off as follows:

Code:
getImageUploader("ImageUploaderID").setMessageUploadCompleteText(''); 

In order to pup-up your own message you should use the Progress event handler and show the response:

Code:
function ImageUploaderID_Progress(Status, Progress, ValueMax, Value, StatusText) 
{ 
alert(StatusText); 
}

Do not forget to specify the Progress event handler name:

Code:
iu.addEventListener("Progress", "ImageUploaderID_Progress");

As about the question about the Name ("ImageUploaderID") or ("ImageUploader1") there should be the line of code in your page such as:

Code:
var iu = new ImageUploaderWriter("ImageUploader1", 650, 400);

so the name should be "ImageUploader1", but if you insert it as

Code:
var iu = new ImageUploaderWriter("ImageUploaderID", 650, 400); 

the name is "ImageUploaderID".

Edited by user Sunday, February 24, 2008 6:08:01 PM(UTC)  | Reason: Not specified

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

eman  
#3 Posted : Wednesday, September 26, 2007 10:43:25 AM(UTC)
eman

Rank: Member

Groups: Member
Joined: 9/26/2007(UTC)
Posts: 1

I'm having a similar issue making the following call...

getImageUploader("ImageUploaderID").setAction(value);

...if the "value" I pass in is a URL with a querystring.

e.g. var value = "../accept_upload.aspx?folderID=123";

When I pass the same URL without the querystring ("../accept_upload.aspx"), the function call is executed just fine.

I've read the following paragraph in the documentation:

Note: Usually this URL must have a specific extension (depending on the web server settings). For ASP platform it should be .asp, for ASP.NET the extension is .aspx, for PHP it is .php, for Perl it can be .pl or .cgi, etc. In other words, the file containing this script should have the extension registered in the settings of your web server as a server page. Otherwise upload will fail.

Does this apply even for setting the Action (setAction) URL? If this is so, meaning I can't have a URL with a querystring because it's not directly supported, is there another way to pass in my parameters to accomplish the same thing...or am I just doing something wrong?

Thanks in advance!

Alex Makhov  
#4 Posted : Monday, October 1, 2007 2:13:55 PM(UTC)
Alex Makhov

Rank: Advanced Member

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

Hello,

That shouldn’t be. Please check if the specified behavior is reproduced with both versions of Image Uploader (ActiveX and Java).

Sincerely yours,

Alex Makhov

UserPostedImage Follow Aurigma on Twitter!

Users browsing this topic
Guest
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.