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

Notification

Icon
Error

Options
Go to last post Go to first unread
johnjen  
#1 Posted : Thursday, December 22, 2011 12:46:44 AM(UTC)
johnjen

Rank: Newbie

Groups: Member
Joined: 12/11/2011(UTC)
Posts: 8

Hi,

I want to upload the images with
•Extended processing of uploaded data (ImageUploaderFlash1_fileuploaded event.)
But I'm not catching the uploaded files. (The uploader give's no error)

I have defined in the uploadercontrol the temp directory, I see that the uploader put a timestamp there, every time I do a upload.

I want also rename the files (using the index number of the uploadfile/package).
I doin't upload the source Image, only the resized thumbnails (2 peaces)

I have attached the code, buth this is not working
Hopefully you can help me......


Afther this I wish the Aurigma team a mary cristmus and a happy newyear

File Attachment(s):
upload_aurigma.txt (3kb) downloaded 5 time(s).
Dmitry.Obukhov  
#2 Posted : Thursday, December 22, 2011 3:18:55 AM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Hi John,

I corrected your client-side code. You need to set Converter Mode="*.*=Thumbnail" (without index). Please look through corrected code:
Code:

<cc1:ImageUploaderFlash ID="ImageUploaderFlash1" runat="server" CancelUploadButtonText="Annuleren" height="400" Language="Dutch" LicenseKey="77FF1-0010D-7DCC0-00066-0D9C3-C354AD" UploadButtonText="Uploaden" width="800px" onfileuploaded="ImageUploaderFlash1_FileUploaded" >

<Converters>
  <cc1:Converter Mode="*.*=Thumbnail" ThumbnailHeight="640" ThumbnailWidth="480" />
  <cc1:Converter Mode="*.*=Thumbnail" ThumbnailHeight="110" ThumbnailWidth="110" />
</Converters>

<Restrictions MaxFileCount="8" />

</cc1:ImageUploaderFlash>


Also, I corrected your server-side script. Please look through it:
Code:

 protected void ImageUploaderFlash1_FileUploaded(object sender, FileUploadedEventArgs e)
{
        UploadedFile uploadedFile = e.UploadedFile;
        int index = uploadedFile.Package.PackageIndex;
        string _Path = "App_Data/Images/Test";
        string _VerkId = "12";
        string dir = "C:/inetpub/RegioCar";
        string originalFiles = dir + "/" + _Path + "/";
        System.IO.Directory.CreateDirectory(originalFiles + _VerkId);
        string thumbnailPath = originalFiles + _VerkId + "/";
        string sourceFileName = string.Format("Image-" + index + ".jpg");
        // save first Thumbnail file
        if (uploadedFile.ConvertedFiles[0] != null)
            uploadedFile.ConvertedFiles[0].SaveAs(System.IO.Path.Combine(originalFiles, sourceFileName));
        // save second thumbnail file
        string ThumbnailName = string.Format("Image-" + index + ".jpg");
        // save original file
        if (uploadedFile.ConvertedFiles[1] != null)
            uploadedFile.ConvertedFiles[1].MoveTo(System.IO.Path.Combine(thumbnailPath, ThumbnailName));
}

Please do not forget to set write permissions to folder where you create new folder and where you save uploaded files. If you have any problems or you need to get some clarifications, please feel free to let me know. I will be glad to assist you.

Merry Christmas :)

Edited by user Thursday, December 22, 2011 8:27:37 AM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
johnjen  
#3 Posted : Thursday, December 22, 2011 12:47:26 PM(UTC)
johnjen

Rank: Newbie

Groups: Member
Joined: 12/11/2011(UTC)
Posts: 8

Hi Dmitry,

I still get no images uploaded.
When I set de uploader on error level3 I get a Upload response code: 200 see logging

[flashuploader_trace] [upload::_-2p] Creating "thumbnail" converter: [flashuploader_trace] [upload::_-2p] Converted item created { mode: 1, fileName: "2799-6 Alfa Romeo, Kenteken.jpg_Thumbnail1.jpg", size: 1992, thumbnailWidth: 96, thumbnailHeight: 72 }[flashuploader_trace] Upload response code: 200 flashuploader_trace] [INFO] Package uploaded: 0[flashuploader_trace] [upload::_-2p] Applicable rules: 1[flashuploader_trace] [upload::_-2p] Creating "thumbnail" converter: [flashuploader_trace] [upload::_-2p] Converted item created { mode: 1, fileName: "2799-28 Opel, Kenteken .jpg_Thumbnail0.jpg", size: 46900, thumbnailWidth: 633, thumbnailHeight: 480 }[flashuploader_trace] [upload::_-2p] Applicable rules: 1[flashuploader_trace] [upload::_-2p] Creating "thumbnail" converter: [flashuploader_trace] [upload::_-2p] Converted item created { mode: 1, fileName: "2799-28 Opel, Kenteken.jpg_Thumbnail1.jpg", size: 2565, thumbnailWidth: 96, thumbnailHeight: 72 }[flashuploader_trace] Upload response code: 200[flashuploader_trace] [INFO] Package uploaded: 1[flashuploader_trace] [INFO] Upload completed.

If i must only give a responce to the http exeption message 200 (i believe it is a succes message)
let me know ho to do that. in ASP.NET ?
Thanks for your time....

Edited by user Thursday, December 22, 2011 3:20:55 PM(UTC)  | Reason: Not specified

johnjen  
#4 Posted : Thursday, December 22, 2011 4:05:15 PM(UTC)
johnjen

Rank: Newbie

Groups: Member
Joined: 12/11/2011(UTC)
Posts: 8

Ok,

Its working fine now.
The error has nothing todo, was not the problem.
I think, I had the temp destination defined, and now deleted....and working......

Thanks for the time,

Have nice days, and a wonderfull 2012
Dmitry.Obukhov  
#5 Posted : Thursday, December 22, 2011 7:04:42 PM(UTC)
Dmitry.Obukhov

Rank: Advanced Member

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

Thanks: 8 times
Was thanked: 111 time(s) in 111 post(s)
Good to know, John, that you resolved the problem :)

Best wishes in New Year
Aurigma team.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
Users browsing this topic
Similar Topics
Upload with fileuploadEventArgs (Discussions – Graphics Mill)
by johnjen 12/22/2011 12:46:44 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.