Aurigma Forums
»
Legacy Products
»
Archive
»
Aurigma Up (iOS/Android)
»
Is there any sample code for Coldfusion and Aurigma Up
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.
|
|
|
|
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 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 |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
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).
|
|
|
|
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, 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. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Aurigma Forums
»
Legacy Products
»
Archive
»
Aurigma Up (iOS/Android)
»
Is there any sample code for Coldfusion and Aurigma Up
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.