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
Dmitry  
#41 Posted : Wednesday, January 14, 2009 2:27:32 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

Have you specified thumbnail parameters in your aspx page? Could you list the page source here?
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
ansch  
#42 Posted : Monday, March 2, 2009 6:29:34 AM(UTC)
ansch

Rank: Newbie

Groups: Member
Joined: 3/2/2009(UTC)
Posts: 3

Hi,

I have downloaded a trial version of the image uploader as well as this asp.net control. It works fine in my localhost and able to upload files. However, when I did exactly the same installation to our web server it came up with an error "No valid license key for current dns/ip address specified" I have sent a support email and was told to insert the trial license key parameter. I'm not sure where I should insert this since I'm using the asp.net control.

Please advice
Thanks

Anson
Tamila  
#43 Posted : Monday, March 2, 2009 1:36:49 PM(UTC)
Tamila

Rank: Advanced Member

Groups: Member
Joined: 3/9/2008(UTC)
Posts: 554

Was thanked: 1 time(s) in 1 post(s)
Anson,

See my answer in case.
Aurigma Support Team

UserPostedImage Follow Aurigma on Twitter!
ansch  
#44 Posted : Monday, March 2, 2009 1:47:12 PM(UTC)
ansch

Rank: Newbie

Groups: Member
Joined: 3/2/2009(UTC)
Posts: 3

Thank you for your help Tamila. That worked perfectly :)
ansch  
#45 Posted : Monday, March 2, 2009 2:14:44 PM(UTC)
ansch

Rank: Newbie

Groups: Member
Joined: 3/2/2009(UTC)
Posts: 3

Another question. Is there anyway to use this asp.net control to retrieve the description text entered? There doesn't seem to be a property for it at the moment.
Dmitry  
#46 Posted : Sunday, March 8, 2009 5:11:07 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

The only way to get descriptions is to extract them from POST request fields in the FileUploaded handler. You need to get Description_N fields values (for example, Request.Form["Description_1"]).

Please, read POST Field Reference and Writing Server-Side Upload Code for additional information.

Edited by user Sunday, March 8, 2009 5:11:45 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
gauravr  
#47 Posted : Monday, March 16, 2009 8:42:15 PM(UTC)
gauravr

Rank: Newbie

Groups: Member
Joined: 3/16/2009(UTC)
Posts: 1

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.

After that according to ur suggestion given to somebody, i changed the code in onInit method of 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++)


and made a new dll. After consuming the new dll, it's giving same error as mentioned above. Please tell me the solution as soon as possible.



With Best Regards,
gaurav malik

Edited by user Friday, March 20, 2009 5:08:01 PM(UTC)  | Reason: Not specified

File Attachment(s):
Aurigma.ImageUploader.dll (172kb) downloaded 24 time(s).
Dmitry  
#48 Posted : Tuesday, March 17, 2009 3:37:48 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello,

I just modified the code in the same way as you described in your post and it worked great for me in VS2008. I did the following:
  1. Opened ImageUploader.cs and modified OnInit method:
    Code:
    
    protected override void OnInit(EventArgs e)
    {
    	base.OnInit(e);
    
    	if (!DesignMode && 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();
    	}
    }
  2. Closed my sample project in Visual Studio.
  3. Recompiled Aurigma.ImageUploader.dll and put it into /bin folder of my sample project.
  4. Opened my sample project.
It works okay. Please, find the updated Aurigma.ImageUploader.dll in the attachment.
File Attachment(s):
Aurigma.ImageUploader.dll (162kb) downloaded 33 time(s).
Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
MyHuntSite  
#49 Posted : Wednesday, March 18, 2009 12:09:55 PM(UTC)
MyHuntSite

Rank: Newbie

Groups: Member
Joined: 3/18/2009(UTC)
Posts: 4

BeforUpload is not working. It's not being called server side.

Code:
<cc1:ImageUploader ID="ImageUploader1" BeforeUpload="ImageUploader1_BeforeUpload"  runat="server">
        </cc1:ImageUploader>



Code:
Protected Sub ImageUploader1_BeforeUpload(ByVal sender As Object, ByVal e As Aurigma.ImageUploader.FileUploadEventArgs)

End Sub


How would you use ImageUploader1.BeforeUpload ?

Edited by user Friday, March 20, 2009 5:10:21 PM(UTC)  | Reason: Not specified

Fedor  
#50 Posted : Wednesday, March 18, 2009 10:15:57 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)
Hello,

Quote:
BeforUpload is not working. It's not being called server side.

<cc1:ImageUploader ID="ImageUploader1" BeforeUpload="ImageUploader1_BeforeUpload" runat="server">
</cc1:ImageUploader>


Protected Sub ImageUploader1_BeforeUpload(ByVal sender As Object, ByVal e As Aurigma.ImageUploader.FileUploadEventArgs)

End Sub

How would you use ImageUploader1.BeforeUpload ?



Could you post here or submit case with entire page code?
Best regards,
Fedor Skvortsov
MyHuntSite  
#51 Posted : Friday, March 20, 2009 9:11:44 AM(UTC)
MyHuntSite

Rank: Newbie

Groups: Member
Joined: 3/18/2009(UTC)
Posts: 4

Code:
  <cc1:ImageUploader ID="ImageUploader1" BeforeUpload="ImageUploader1_BeforeUpload" runat="server">
</cc1:ImageUploader>


The JavaScript is called and not server side for ImageUploader1_BeforeUpload.

I added this to the page for a test. The Javascript is being called and not the server side code. I fixed my problem using AJAX but it would be nice if the control would take care of it.

Thanks

Code:
<script type="text/javascript">

    function ImageUploader1_BeforeUpload(){
    alert('not on server');
    }
   
    </script>


My code:

Code:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="ImageUploaderError.aspx.vb" Inherits="Members_ImageUploaderError" %>

<%@ Register Assembly="Aurigma.ImageUploader" Namespace="Aurigma.ImageUploader" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <cc1:ImageUploader ID="ImageUploader1" BeforeUpload="ImageUploader1_BeforeUpload" runat="server">
</cc1:ImageUploader>

    </div>
    </form>
</body>
</html>



Code:
Partial Class Members_ImageUploaderError
    Inherits System.Web.UI.Page

    Protected Sub [b]ImageUploader1_BeforeUpload[/b](ByVal sender As Object, ByVal e As Aurigma.ImageUploader.FileUploadEventArgs)
        Dim tets As String = "DD"
    End Sub

'And I Tried this and other variations
Protected Sub ImageUploader1_BeforeUpload()
        Dim tets As String = "DD"
    End Sub


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

        ImageUploader1.ScriptsDir = "ImageUploader"
        ImageUploader1.Width = "700"
        ImageUploader1.Height = "600"

    End Sub
End Class

Edited by user Monday, April 6, 2009 8:35:35 PM(UTC)  | Reason: Not specified

Fedor  
#52 Posted : Sunday, March 22, 2009 12:58:29 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 am sorry, I have not paid enough attention to the fact that you use client-side only BeforeUpload event.

There are numerous client-side events, and only one server FileUploaded event.

You try to use client-side event on server side, but it doesn't work due to design.

If you want to handle uploaded files, please use FileUploaded event:

Code:
    <cc1:ImageUploader ID="ImageUploader1" runat="server" Height="350px" Width="630px" OnFileUploaded="ImageUploader1_FileUploaded" ShowDebugWindow="True" />

Edited by user Sunday, March 22, 2009 1:00:05 AM(UTC)  | Reason: Not specified

Best regards,
Fedor Skvortsov
nagwa  
#53 Posted : Monday, April 6, 2009 3:14:45 PM(UTC)
nagwa

Rank: Newbie

Groups: Member
Joined: 4/6/2009(UTC)
Posts: 1

i've just downloaded the dll and used it in my website. whenever i try to upload an image the control display a message upload complete but i can' find any image in the folder i specified as the gallerypath
this is my code
ASPX page

Code:
<Aurigma:ImageUploader ID="ImageUploader" runat="server" Height="500px" Width="700px" ShowDebugWindow="True" ScriptsDir="~/UploadScript" AllowFolderUpload="false" UploadSourceFile="false"
             EditDescriptionText="add title" RememberLastVisitedFolder="true" OnFileUploaded="ImageUploader_FileUploaded" />


VB page
Code:
Imports System.IO
Partial Class Autho_UploadImg
    Inherits System.Web.UI.Page

    Private galleryPath As String = "./Gallery/"

    Protected Sub ImageUploader_FileUploaded(ByVal sender As Object, ByVal e As Aurigma.ImageUploader.FileUploadEventArgs)

        Dim fileName As String = GetSafeFileName(Path.GetFileName(e.File.FileName))
        e.File.SaveAs(Server.MapPath(galleryPath + fileName))
    End Sub

    Private Function GetSafeFileName(ByVal fileName As String) As String
        Dim newFileName As String = fileName
        Dim j As Integer = 1
        While File.Exists(Server.MapPath(galleryPath + newFileName))
            newFileName = (j & "_") + fileName
            j += 1
        End While
        Return newFileName
    End Function

End Class

Edited by user Tuesday, April 7, 2009 1:07:38 AM(UTC)  | Reason: Not specified

Fedor  
#54 Posted : Tuesday, April 7, 2009 2:33:27 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)
nagwa,

Have you tried to debug your code? Could you post here or submit case with entire page code?
Best regards,
Fedor Skvortsov
ahmed7914  
#55 Posted : Wednesday, April 15, 2009 6:39:29 AM(UTC)
ahmed7914

Rank: Newbie

Groups: Member
Joined: 4/15/2009(UTC)
Posts: 2

Working :-)

Thanks a lot Alex

Edited by user Wednesday, April 15, 2009 6:42:29 AM(UTC)  | Reason: Not specified

ahmed7914  
#56 Posted : Friday, April 17, 2009 6:51:00 AM(UTC)
ahmed7914

Rank: Newbie

Groups: Member
Joined: 4/15/2009(UTC)
Posts: 2

Hi,

I have used the same way that u have mentioned here, It is working fine in .Net 2005, but when i tried to use it in .Net 2008, iam getting a an error in design time "Error Creating Control - ImageUploader1 Request is not Valid in this context".

Best Regards,

Ahmed Hussein



Dmitry  
#57 Posted : Friday, April 17, 2009 6:21:47 PM(UTC)
Dmitry

Rank: Advanced Member

Groups: Member, Administration, Moderator
Joined: 8/3/2003(UTC)
Posts: 1,070

Thanks: 1 times
Was thanked: 12 time(s) in 12 post(s)
Hello Ahmed,

Please, read my answer posted on March, 18, 2009 in this thread.

Edited by user Friday, April 17, 2009 6:22:24 PM(UTC)  | Reason: Not specified

Sincerely yours,
Dmitry Sevostyanov

UserPostedImage Follow Aurigma on Twitter!
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.