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

Notification

Icon
Error

Options
Go to last post Go to first unread
timbo69  
#1 Posted : Sunday, January 29, 2012 3:38:17 AM(UTC)
timbo69

Rank: Newbie

Groups: Member
Joined: 1/29/2012(UTC)
Posts: 2

I attempted to modify some sample code from Uploader 6 but found the mobile app will transfer an finish cleanly with the redirect, but there is nothing uploaded on the server.
Dmitry.Obukhov  
#2 Posted : Sunday, January 29, 2012 10:47:48 PM(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)
Hello Tim,

Unfortunately, we do not have the prepared sample with integrating Aurigma Up and ColdFusion. You can use server-side code of Image Uploader 7:
Code:

<cfprocessingdirective pageEncoding="utf-8">
<!---This variable specifies relative path to the folder, where the gallery with uploaded files is located.
Do not forget about the slash in the end of the folder name.--->
<cfset galleryPath="Gallery/" />
<cfset absGalleryPath="#ExpandPath(galleryPath)#" />
<!---Get total number of uploaded files (all files are uploaded in a single package) and
iterate through uploaded data and save the original file, thumbnail, and description.--->
<cfset fileCount=(#Form.PackageFileCount#-1)>
<cfloop index="i" from="0" to="#fileCount#">
    <!--- Save converted files --->
    <cfloop index="j" from="0" to="1">
        <cffile action="UPLOAD" filefield="File#j#_#i#"
            destination="#absGalleryPath#"
            nameconflict="MakeUnique">
    </cfloop>    
</cfloop>

I have attached the cfm file to this case. Please set it as value of uploadUrl propert correctly, and try. Then please let me know about your result.

Edited by user Sunday, January 29, 2012 10:48:34 PM(UTC)  | Reason: Not specified

File Attachment(s):
upload.zip (1kb) downloaded 3 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
timbo69  
#3 Posted : Sunday, January 29, 2012 11:23:40 PM(UTC)
timbo69

Rank: Newbie

Groups: Member
Joined: 1/29/2012(UTC)
Posts: 2

Thanks Dmitry, this actually sends one image to the server successfully, but at the end of the transfer the App displays an Upload Failure (HTTP code 5xx received).
Dmitry.Obukhov  
#4 Posted : Tuesday, January 31, 2012 1:09:02 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)
Hello,

Sorry, I have made a mistake in the server-side script. Please use the following one:
Code:

<cfprocessingdirective pageEncoding="utf-8">
<!---This variable specifies relative path to the folder, where the gallery with uploaded files is located.
Do not forget about the slash in the end of the folder name.--->
<cfset galleryPath="../UploadedFiles/" />
<cfset absGalleryPath="#ExpandPath(galleryPath)#" />
<!---Get total number of uploaded files (all files are uploaded in a single package) and
iterate through uploaded data and save the original file, thumbnail, and description.--->
<cfset fileCount=(#Form.PackageFileCount#-1)>
<cfloop index="i" from="0" to="#fileCount#">
    <!--- Save converted files --->
          <cffile action="UPLOAD" filefield="File#0#_#i#"
            destination="#absGalleryPath#"
            nameconflict="MakeUnique">
</cfloop>

I attached my testing sample to the post. You can download and try it out.
File Attachment(s):
AurigmaUp_CF.zip (2kb) downloaded 7 time(s).
Best regards,
Dmitry Obukhov
Technical Support. Aurigma, Inc.
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.