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

Notification

Icon
Error

3 Pages<123>
Options
Go to last post Go to first unread
trancehead  
#21 Posted : Sunday, July 20, 2008 7:31:29 PM(UTC)
trancehead

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 4

Hi,

Since posting my question I have managed to get it working by setting the action to a different page.

The new problem is that the upload sub is always being called even when it is just a normal postback. It then loses all the postback events i.e. just shows a blank page and the page_load event is never fired.
Fedor  
#22 Posted : Sunday, July 20, 2008 7:58:58 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Quote:
The new problem is that the upload sub is always being called even when it is just a normal postback. It then loses all the postback events i.e. just shows a blank page and the page_load event is never fired.


Could you post your code?
Best regards,
Fedor Skvortsov
trancehead  
#23 Posted : Sunday, July 20, 2008 8:09:32 PM(UTC)
trancehead

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 4

Quote:

<asp:Panel ID="pnlAddPic" runat="server" CssClass="modalPopup UploadModal" Style="display: none;">
<p style="text-align: center;">
Select the photos you would like to upload, add a title if you want and then click
the send button<br />
<Aurigma:ImageUploader ID="imgUpload" runat="server" Height="500px" Width="580px"
ShowDebugWindow="false" ScriptsDir="~/Scripts" AllowFolderUpload="false" UploadSourceFile="false"
EditDescriptionText="add title" RememberLastVisitedFolder="true" UploadThumbnail1ResizeQuality="High"
UploadThumbnail1JpegQuality="100" UploadThumbnail1FitMode="Width"
UploadThumbnail1Width="600" MaxFileSize="1048576" FileMask="*.jpg;*.jpeg;*.jpe;*.bmp;*.gif" />
</p>
<p style="text-align: center;">
<asp:LinkButton ID="CancelButton" runat="server" Text="<< Cancel" CssClass="invite" />
</p>
</asp:Panel>
<asp:ModalPopupExtender ID="mpeAddPic" runat="server" TargetControlID="lnkAddBottom"
PopupControlID="pnlAddPic" BackgroundCssClass="modalBackground" CancelControlID="CancelButton" />
<asp:ModalPopupExtender ID="mpeAddPicTop" runat="server" TargetControlID="lnkAddTop"
PopupControlID="pnlAddPic" BackgroundCssClass="modalBackground" CancelControlID="CancelButton" />
Fedor  
#24 Posted : Sunday, July 27, 2008 3:39:33 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Do you upload at the same time files using <asp:FileUpload > element?

Here is source code of Image Uploader control where it handles file upload:

Code:
		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);

			if (Page.Request.Files.Count > 0)
			{
				for (int i = 0; i < Page.Request.Files.Count; i++)
				{
					HttpPostedFile file = Page.Request.Files[i];

					FileUploadEventArgs args = new FileUploadEventArgs(file);

					OnFileUploaded(args);
				}

				HttpContext.Current.Response.End();
			}
		}


As you see, if request contains some uploaded files, then it raise FileUploaded event for each file and then ends response (HttpContext.Current.Response.End();). After no other page events are raised.
Best regards,
Fedor Skvortsov
trancehead  
#25 Posted : Sunday, July 27, 2008 5:03:34 PM(UTC)
trancehead

Rank: Newbie

Groups: Member
Joined: 7/17/2008(UTC)
Posts: 4

I think the problem may be HttpContext.Current.Response.End();

I was posting back to the same page and this would have effectively stopped it. I have used a different solution so I won't be able to test if this would actually work or not.

One thing I did struggle with was how to get the descriptions in the postback?
Fedor  
#26 Posted : Sunday, July 27, 2008 6:23:09 PM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
You can try to replace in control source code:

Code:
if (Page.Request.Files.Count > 0)


to

Code:
if (!String.IsNullOrEmpty(Page.Request.Form["PackageGuid"]))


Image Uploader always send PackageGuid field in post request. We will fix in next control release.

Quote:
One thing I did struggle with was how to get the descriptions in the postback


Description is stored in Request.Form["Description_N"] field of request. You can get access to it at any time.

Edited by user Wednesday, October 29, 2008 12:33:50 PM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
ndevil  
#27 Posted : Wednesday, August 6, 2008 4:24:55 PM(UTC)
ndevil

Rank: Newbie

Groups: Member
Joined: 8/6/2008(UTC)
Posts: 4

Good day.

I'm using Visual Studio 2008 and control does not render in the designer. The error shown on the control is:

Error Rendering Control - ImageUploader1
Request is not available in this context.

I have checked the reference to the dll.

It works in VS2005.

Please assist.

Regards
Fedor  
#28 Posted : Monday, August 18, 2008 7:28:07 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
I am sorry for delay. I was on business trip last 2 weeks.

I confirm the problem. I will prepare update ASAP.
Best regards,
Fedor Skvortsov
Fedor  
#29 Posted : Monday, August 18, 2008 11:49:53 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Quote:
I'm using Visual Studio 2008 and control does not render in the designer. The error shown on the control is:

Error Rendering Control - ImageUploader1
Request is not available in this context.

I have checked the reference to the dll.

It works in VS2005.


You need to change in OnInit of ImageUploader (ImageUploader.cs) from:


Code:
			base.OnInit(e);

            if (Page.Request.Files.Count > 0)
            {
                for (int i = 0; i < Page.Request.Files.Count; i++)


to:

Code:
			base.OnInit(e);

            if (!DesignMode && Page.Request.Files.Count > 0)
            {
                for (int i = 0; i < Page.Request.Files.Count; i++)


I will include this fix to next major ASP.NET control update.
Best regards,
Fedor Skvortsov
Rob@Sask  
#30 Posted : Wednesday, August 27, 2008 4:51:28 AM(UTC)
Rob@Sask

Rank: Member

Groups: Member
Joined: 8/27/2008(UTC)
Posts: 10

Hey all,

I am new to the Aurigma product and trying to figure out something. I want to use the ASP.NET control version to place the upload tool in my ASP.NET page. I can do that using the basic control example as outlined on this site but what I want to do is to be able to customize the preview pane to allow the user to be able to enter in several fields worth of information.

I've looked at the Multiple Descriptions Sample and are able to make that work using a javascript-based approach. My question is how do I do so using ASP.NET controls? I've tried to simply substitute the <script>....</script> section in the body of the sample page for an <cc1:ImageUploader>...</> tag but it does not seem to show the preview pane when I do this approach.

Can someone assist in how to have a template visible for each image that is being uploaded in the pane at the bottom so I can have the appropriate input entered wit the photo?

Thanks,
Robin
Fedor  
#31 Posted : Wednesday, August 27, 2008 6:03:41 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello,

I think it is better now to go forward without ASP.NET control. You should implement it the usual way using iuembed.js script. Just see Multiple Description sample and go forward with it.

Best regards,
Fedor Skvortsov
Best regards,
Fedor Skvortsov
Rob@Sask  
#32 Posted : Wednesday, August 27, 2008 6:21:59 AM(UTC)
Rob@Sask

Rank: Member

Groups: Member
Joined: 8/27/2008(UTC)
Posts: 10

Thanks Fedor!
bob_us  
#33 Posted : Friday, August 29, 2008 9:14:01 AM(UTC)
bob_us

Rank: Newbie

Groups: Member
Joined: 8/29/2008(UTC)
Posts: 2

Hi,

I am developing a website for my friends company and iam thinking of using this control.

First thing

a) Is this a free control or do i need to buy. We will only use it on the website so that the users can upload multiple images.

b) i am trying to run the sampe and when i run i iam getting a error abt Missing some files like ImageUploader5.cab,ImageUploader5.jar,iuembed.js etc..

I looked for these files in the source directory and i obviouly i dont fiind them

How do i get those files and where do i download them.

Thanks,
Bob
Fedor  
#34 Posted : Friday, August 29, 2008 9:35:59 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Bob, currently this ASP.NET control is wrapper around Image Uploader Dual control:

http://www.aurigma.com/Products/ImageUploader/

You can download evaluation version of it (with .CAB, .JAR, and JS files) here:

http://www.aurigma.com/P...eUploader/FreeTrial.aspx

As for licensing please read here:

http://www.aurigma.com/P...eUploader/Licensing.aspx

Best regards,
Fedor Skvortsov
bob_us  
#35 Posted : Friday, September 5, 2008 1:15:01 PM(UTC)
bob_us

Rank: Newbie

Groups: Member
Joined: 8/29/2008(UTC)
Posts: 2

Iam trying to use the multifiledemo .. i have set it up...

first thing is it doesnt allow the drag and drop...

second thing is how do i call the ImageUploader1_FileUploaded() method ... i dont know if i need to add a event in the java script? which i have done like this

iu.addEventListener("OnFileUploaded", "ImageUploader1_FileUploaded").... still the code aint reaching the ImageUploader1_FileUploaded ....

So iam getting the files in the Page_load which i dont like because the first time the page is loading i dont have no files and so it throws an error... but iam implementing it in a wrong way with blank Catch( ) i,.e catching error and doing nothing...

third thing i need to know is how to show the error message ... or change the message that the java script throws like File Uploaded... i need to chnage those..

and say soem thing like Upload complete.. and do some thing else or better redirect them to another page without even showing that alert of filesuploaded...

Thanks in Advance :)

Bob
Rob@Sask  
#36 Posted : Wednesday, November 12, 2008 4:15:10 AM(UTC)
Rob@Sask

Rank: Member

Groups: Member
Joined: 8/27/2008(UTC)
Posts: 10

Hey Fedor,

I am revisiting the Aurigma tool in my website and I wanted to check in to see if any more progress was made with the ASP.NET control as per my previous post? I'm using the typcial javascript approach but when populating page contents dynamically it would be much easier to have everything bundled into a control.

Thanks,
Rob
Fedor  
#37 Posted : Thursday, November 13, 2008 2:48:14 AM(UTC)
Fedor

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 7/28/2003(UTC)
Posts: 1,660

Thanks: 5 times
Was thanked: 76 time(s) in 74 post(s)
Hello Rob,

Quote:
I am revisiting the Aurigma tool in my website and I wanted to check in to see if any more progress was made with the ASP.NET control as per my previous post? I'm using the typcial javascript approach but when populating page contents dynamically it would be much easier to have everything bundled into a control.


We are working over the next version of ASP.NET control, which will include support of visual ASP.NET designer (see attached screenshot), as well as wrapper over iuembed.CustomUploadPane.js script, which will be introduced in version 6.0:

http://blogs.aurigma.com...ploader-60-Concepts.aspx

It will be available in the beginning of 2009.

Edited by user Thursday, November 13, 2008 8:29:30 AM(UTC)  | Reason: Not specified

Fedor attached the following image(s):
IU_6_ASPNET.png
Best regards,
Fedor Skvortsov
joanmjc  
#38 Posted : Wednesday, November 26, 2008 10:04:30 PM(UTC)
joanmjc

Rank: Member

Groups: Member
Joined: 11/26/2008(UTC)
Posts: 17

Hi, Ive done all steps and now my image uploader is fully working on my site but whenever I try to upload images it gives me a message saying that there's no licence for my IP or DNS, why is that, Im using the FREE control why do I need license if its FREE?
Max Osokin  
#39 Posted : Monday, December 8, 2008 4:26:14 PM(UTC)
Max Osokin

Rank: Member

Groups: Member
Joined: 9/5/2007(UTC)
Posts: 4

Joan, thank you for this important notice. I have accordingly corrected the description on YouTube.
skinaman  
#40 Posted : Monday, January 12, 2009 2:07:27 PM(UTC)
skinaman

Rank: Newbie

Groups: Member
Joined: 1/12/2009(UTC)
Posts: 1

I can't get the Thumbnail to save. here is my code.

Dim thumbnail1File As HttpPostedFile = Request.Files("Thumbnail1_" & i - 1)
thumbnail1File.SaveAs(Server.MapPath(galleryPathTH & fileName & ".jpg"))

Everytime it's gets to try and retrieve the thumbnail file i get an error. Does the thumbnail get automatically created on the upload?
Users browsing this topic
Similar Topics
HELP!! About the System Requirements of Image Uploader ASP.NET Control (Discussions – ActiveX/Java Uploader)
by gostop 12/27/2009 11:41:12 AM(UTC)
PRB: Image Uploader ASP.NET Control throws exception "Request for the permission failed" (FAQ – ActiveX/Java Uploader)
by Tamila 11/19/2009 4:03:59 AM(UTC)
Image Uploader ASP.NET Control and StyleSheet (Image Uploader)
by pustefisk 8/2/2008 7:47:14 PM(UTC)
Image Uploader ASP.NET Control (Discussions – ActiveX/Java Uploader)
by stewsterl 2/27/2008 3:17:53 AM(UTC)
[ANSWERED] Image Uploader ASP.NET Control <BUG> (Discussions – ActiveX/Java Uploader)
by stewsterl 2/4/2008 3:05:29 AM(UTC)
Image Uploader ASP.NET Control (Discussions – ActiveX/Java Uploader)
by Alex Makhov 1/22/2008 7:23:46 PM(UTC)
3 Pages<123>
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.