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

Notification

Icon
Error

Options
Go to last post Go to first unread
sittan  
#1 Posted : Wednesday, February 23, 2011 1:19:53 AM(UTC)
sittan

Rank: Newbie

Groups: Member
Joined: 2/14/2011(UTC)
Posts: 1

Hello,

I'm using Image Uploader Flash with ASP.net

When I define thumbnail converter - nothing is uploaded, it only works when I use

one converter for the Source file.

Not Working Code Code:

-------------------------

Code:
    <aur:ImageUploaderFlash 
                runat="server"
                id="FlashUploader"
                LicenseKey="XXX" 
                Height="480px" 
                Width="720px" 
                AutoSave="false"
                Language="Hebrew"
                onfileuploaded="FlashUploader_FileUploaded">
                
        <Converters>
            <aur:Converter Mode="*.*=SourceFile" />
            <aur:Converter Mode="*.*=Thumbnail" 
                        ThumbnailHeight="120" 
                        ThumbnailWidth="120" 
                        ThumbnailFitMode="Fit" />
        </Converters>
   
    </aur:ImageUploaderFlash>

Working Code:

--------------

Code:
    <aur:ImageUploaderFlash 
                runat="server"
                id="FlashUploader"
                LicenseKey="xxx" 
                Height="480px" 
                Width="720px" 
                AutoSave="false"
                Language="Hebrew"
                onfileuploaded="FlashUploader_FileUploaded">
                
        <Converters>
            <aur:Converter Mode="*.*=SourceFile" />
            
        </Converters>
   
    </aur:ImageUploaderFlash>

I dont use Auto save, and my FileUploaded event is:

Code:
    protected void FlashUploader_FileUploaded(object sender, Aurigma.ImageUploaderFlash.FileUploadedEventArgs e)
    {
        string SavePath = Server.MapPath("~/Albums/" + CurrentAlbum.AlbumId + "/");
        if (!Directory.Exists(SavePath))
        {
            Directory.CreateDirectory(SavePath);
        }

        foreach (ConvertedFile OneFile in e.UploadedFile.ConvertedFiles)
        {

            OneFile.SaveAs(Path.Combine(SavePath, OneFile.Name));
         }
    }

There is no Error - but no files are being uploaded.

Edited by moderator Wednesday, February 23, 2011 3:05:55 AM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#2 Posted : Thursday, February 24, 2011 12:09:16 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

Groups:
Joined: 5/29/2010(UTC)
Posts: 1,310

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
You should add this modules to your web.config file:

Code:

<system.web>
  <httpModules>
   <add name="UploaderModule" type="Aurigma.ImageUploaderFlash.UploaderModule"/>
  </httpModules>
</ system.web >
…
<system.webServer>
  <validation validateIntegratedModeConfiguration="false" />
  <modules>
   <add name="UploaderModule" type="Aurigma.ImageUploaderFlash.UploaderModule"/>
  </modules>
 </system.webServer>
Best regards,

Dmitry Obukhov

Technical Support. Aurigma, Inc.

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.