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

Notification

Icon
Error

Options
Go to last post Go to first unread
cheekyadmin  
#1 Posted : Monday, September 27, 2010 4:40:44 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi

Do you have any example code of how to upload files / images using the Flash Image Uploader for Coldfusion? I have used the Image Uploader standard before and there was documentation, yet there seems to be nothing for Coldfusion for the Flash version, only for .Net and PHP.

Even if you could just get me to a point where you cfdump the form data submitted and I can take it from there.

This would greatly help

Thanks

Edited by moderator Thursday, January 27, 2011 2:30:21 AM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#2 Posted : Tuesday, September 28, 2010 5:36:17 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)
Hello Paul,

Thanks for contacting us.

You can embed Image Uploader Flash on your cfm page using JavaScript library. Please read information on how to do it in the Quick Start with Embedding Scripts Library article.
Then you should implement server-side part to save uploaded files correspondent to used server platform.

If you have any additional questions or problems, please feel free to let me know.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
rmajoran  
#3 Posted : Wednesday, October 13, 2010 3:50:46 AM(UTC)
rmajoran

Rank: Newbie

Groups: Member
Joined: 10/12/2010(UTC)
Posts: 8

Dmitry,

Would you be able to provide us with a sample ColdFusion config?

I am in the same boat... We have a couple of different licenses and were shocked to find that there is no ColdFusion support docs.

Thanks!

Ray
Dmitry.Obukhov  
#4 Posted : Wednesday, October 13, 2010 2:45:52 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)
Hello Ray

Could you provide me with additional information? Please let me know do you want to use thumbnails? Our developer need this information.

Looking forward to your reply.

Edited by user Thursday, October 14, 2010 10:58:53 PM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
rmajoran  
#5 Posted : Thursday, October 14, 2010 12:08:55 AM(UTC)
rmajoran

Rank: Newbie

Groups: Member
Joined: 10/12/2010(UTC)
Posts: 8

Thanks for the response. I've got the front end working fine with the Javascript... it's the actionUrl that I'm having a tough time writing because I don't quite understand how everything should work in ColdFusion. Here's my current JS model:

Code:
<script type="text/javascript" src="ClientScripts/aurigma.imageuploaderflash.js">  </script>
<script type="text/javascript">
    var fu = $au.imageUploaderFlash({
        
        id: 'Uploader1',
        width: '650px',
        height: '480px',
        licenseKey: 'REMOVED FOR THIS POST',
        flashControl: {
            codeBase: 'ClientScripts/aurigma.imageuploaderflash.swf'
        },
        converters: [
            {mode: '*.*=Thumbnail', thumbnailFitMode: 'Fit', thumbnailWidth: '1200', thumbnailHeight: '1200', thumbnailJpegQuality: '60'},
            {mode: '*.*=Thumbnail', thumbnailFitMode: 'Fit', thumbnailWidth: '90', thumbnailHeight: '68', thumbnailJpegQuality: '60'}
        ], 
        upload: {
            actionUrl: 'photoengineupload-v3.cfm?h=#session.d2#',
            redirectUrl: 'edit.cfm?step=2&status=1&mid=15&genre1=#genre1#&d=#session.d2#&RequestTimeout=9999'
        }
        
    });

    fu.restrictions({
        fileFilters: [
            ['Images (*.jpg; *.jpeg; *.jpe)', '*.jpg;*.jpeg;*.jpe']
        ],
        minFileCount: 1, 
        maxFileCount: #val(photosallowed)#,
        maxFileSize: 15728640, //15 MB in bytes
        minImageWidth: 150, 
        minImageHeight: 150
    });  
     
    fu.messages({
        tooFewFilesError: 'You must select at least one file.',
        tooManyFilesError: 'You can select not more than #val(photosallowed)# files.',
        fileTooLargeError: 'You can add files not larger than 15 MB.',
        imageHeightTooSmallError: 'Image height should be larger than 150 pixels.',
        imageWidthTooSmallError: 'Image width should be larger than 150 pixels.'
    });
    
    fu.writeHtml();

</script> 


With the old Java/ActiveX uploader, my actionURL page looks like this (and works great):

Code:
<cfprocessingdirective pageencoding="utf-8">

<cfset absLargePath="#DRIVEPATH#photos_test\tempupload\#trim(h)#_large\" />
<cfset absThumbnailsPath="#DRIVEPATH#photos_test\tempupload\#trim(h)#_thumbs\" />
<cfset descriptions=XmlParse("<files />") />
<cfset totalUploadedFileSize=0>
    
<cfloop index="i" from="1" to="#Form.FileCount#">
    <cftry>
    
        <!---Get the first thumbnail and save it to disk. It stores 1200x1200 optimized image.--->
        <cffile action="UPLOAD" filefield="Thumbnail1_#i#" 
            destination="#absLargePath#" 
            nameconflict="MakeUnique">
    
        <cfset fileName="#serverFile#">
        <cfset totalUploadedFileSize = totalUploadedFileSize + #fileSize#>
    
        <!---Get the second thumbnail and save it to disk. It stores 120x120 preview image.--->
        <cffile action="UPLOAD" filefield="Thumbnail2_#i#" 
            destination="#absThumbnailsPath#" 
            nameconflict="MakeUnique">
        
        <!---Rename thumbnail file so that it has .jpg extension--->
        <cffile action="rename"
            source="#absThumbnailsPath#/#serverFile#"
            destination="#absThumbnailsPath#/#filename#"> 
    
        <!---Save file info.--->
        <cfset xmlFile=XmlElemNew(descriptions, "file") />
        <cfset xmlFile.XmlAttributes.name=fileName />
        <cfset xmlFile.XmlAttributes.width=evaluate("Form.Width_#i#") />
        <cfset xmlFile.XmlAttributes.height=evaluate("Form.Height_#i#") />
        <cfset xmlFile.XmlAttributes.description=evaluate("Form.Description_#i#") />
        <cfset ArrayAppend(descriptions.files.XmlChildren, xmlFile) />
            
        <cfcatch><cfthrow message="There was a problem uploading your file, please try again."></cfcatch>
        
    </cftry>

</cfloop>

<cfset descriptions.files.XmlAttributes.totalUploadedFileSize=Int(totalUploadedFileSize / 1024) />


Thanks again for your help!

Sincerely,
Ray

Edited by moderator Sunday, November 7, 2010 9:26:47 PM(UTC)  | Reason: Not specified

Dmitry.Obukhov  
#6 Posted : Thursday, October 14, 2010 8:39:20 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)
Hello Ray,

The way you have implemented is suitable to upload source files only. As far as I see, you need to upload two thumbnails. Our developer will create sample, which shows how to upload, and save thumbnails on the server side using ColdFusion. I will provide you with this sample at the beginning of the next week.

Edited by user Thursday, October 14, 2010 10:58:25 PM(UTC)  | Reason: Not specified

Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
rmajoran  
#7 Posted : Thursday, October 14, 2010 10:29:56 PM(UTC)
rmajoran

Rank: Newbie

Groups: Member
Joined: 10/12/2010(UTC)
Posts: 8

Thanks!

PS. It's Ray, not Paul. :)
rmajoran  
#8 Posted : Thursday, October 14, 2010 10:43:36 PM(UTC)
rmajoran

Rank: Newbie

Groups: Member
Joined: 10/12/2010(UTC)
Posts: 8

One more thing, Dmitry...

You noted that the script was suitable for source files. I would argue that with the new Flash uploader, my actionURL is NOT suitable because it does not support Form variables (or so it would seem).

I look forward to seeing the new code.

Sincerely,
Ray
Dmitry.Obukhov  
#9 Posted : Sunday, October 17, 2010 6:07:08 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)
Hello Ray,

Our engineer has created sample for ColdFusion. I attached this sample for your reference. Please follow these steps:
  1. download, and unpack zip archive;
  2. install of the Aurigma Flah Upload filter for ColdFusion server. You can find additional information how to do it in the README.txt file, which is located in upload-filter/ folder.
If you have any additional questions or problems, please feel free to let me know.
File Attachment(s):
ImageUploaderFlash_ColdFusion_Sample.zip (430kb) downloaded 60 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
rmajoran  
#10 Posted : Monday, October 18, 2010 2:45:48 AM(UTC)
rmajoran

Rank: Newbie

Groups: Member
Joined: 10/12/2010(UTC)
Posts: 8

Thank you!!!!

I will check this out over the next couple of days.

Appreciate it.

Ray
rmajoran  
#11 Posted : Thursday, October 21, 2010 11:16:55 AM(UTC)
rmajoran

Rank: Newbie

Groups: Member
Joined: 10/12/2010(UTC)
Posts: 8

Worked amazing. Thanks again!
Dmitry.Obukhov  
#12 Posted : Thursday, October 21, 2010 11:38:54 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)
Hello Ray,

Thanks for your comment.

Please let me know, if you have some questions or problems.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
cheekyadmin  
#13 Posted : Sunday, November 7, 2010 12:05:23 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry

I too would like to see that sample application please. Unfortunately, the attachment you left above says : "You don't have permission to view/download attachments."

Thanks
Dmitry.Obukhov  
#14 Posted : Sunday, November 7, 2010 11:13:20 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)
Hello,

The problem with downloading files from attachments was on the last Saturday. However, it has been fixed, and now all forum users can download files. Sorry for inconvenience.

Please try to download it once again.
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
cheekyadmin  
#15 Posted : Sunday, November 7, 2010 11:27:12 PM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Hi Dmitry

If I go to post #9 on this thread, all I see is:

"File Attachment(s):
ImageUploaderFlash_ColdFusion_Sample.zip (430kb) downloaded 8 time(s).

You don't have permission to view/download attachments."


Fedor  
#16 Posted : Sunday, November 7, 2010 11:59:01 PM(UTC)
Fedor

Rank: Advanced Member

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

Thanks: 5 times
Was thanked: 62 time(s) in 61 post(s)
cheekyadmin wrote:
If I go to post #9 on this thread, all I see is:

"File Attachment(s):
ImageUploaderFlash_ColdFusion_Sample.zip (430kb) downloaded 8 time(s).

You don't have permission to view/download attachments."


I am sorry, we have fixed it finally. Please try again.
Best regards,
Fedor Skvortsov
cheekyadmin  
#17 Posted : Monday, November 8, 2010 12:10:12 AM(UTC)
cheekyadmin

Rank: Member

Groups: Member
Joined: 9/27/2010(UTC)
Posts: 23

Thanks: 1 times
Thanks - it's working now :)
Users browsing this topic
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.