Rank: Newbie
Groups: Member
Joined: 5/18/2015(UTC) Posts: 2
|
Hey Folks, I've gotten the HTML5 interface working in Chrome and am able to select a folder for upload; all of the extension-less DICOM files are shown. But, after clicking the "Upload" button and see that progress bar finished - QUICKLY, the files don't show-up in the specified folder. I've checked the console and there are no error messages. Any ideas: Javascript: Quote: <script type="text/javascript"> $( document ).ready(function() {
var uploader = $au.imageUploaderFlash({ id: 'Uploader1', licenseKey: 'REMOVED FOR POST, width: '100%', height: '400px', enableAddingFiles: true, enableAutoRotation: false, enableDescriptionEditor: false, enableRotation: false, type: "html|flash", <!--- folderProcessingMode: "Mixed", ---> folderProcessingMode: "Folder", converters: [ { mode: '*.*=SourceFile' }, ], uploadSettings: { actionUrl: 'upload.cfm', redirectUrl: 'index2.cfm', enableInstantUpload: false, progressBytesMode: "BySourceSize" }, flashControl: { codeBase: '#application.includesurl#Aurigma/Scripts/aurigma.imageuploaderflash.swf', bgColor: '#f5f5f5' }, restrictions: { minFileSize: 9000, fileMask: [ ['All files (*.*)', '*.*'] ] } });
$("#uploader").html(uploader.getHtml()); });
</script>
Upload Code. BTW, the "from" parameter in the cfloop throws an error when set to 0, thus my change to 1: Quote: <cfprocessingdirective pageEncoding="utf-8" /> <cfset galleryPath="scans/" /> <cfset absGalleryPath="#ExpandPath(galleryPath)#" /> <cfif #Form.PackageIndex# is 0> <!---Delete source files.---> <cfdirectory name="galleryDir" action="list" directory="#absGalleryPath#" filter="*" /> <cfloop query="galleryDir"> <cfif FileExists("#absGalleryPath##Name#")> <cffile action="delete" file="#absGalleryPath##Name#" /> </cfif> </cfloop> </cfif> <cfset fileCount=(#Form.PackageFileCount#-1) /> <cfloop index="i" from="1" to="#fileCount#"> <cfset name="#Form["SourceName_#i#"]#"/> <cffile action="UPLOAD" filefield="File0_#i#" destination="#absGalleryPath#" nameconflict="MakeUnique"> <cfset sourceFileName="#serverFile#" /> </cfloop> <cfoutput>#fileCount#</cfoutput>
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 6/10/2013(UTC) Posts: 34
Was thanked: 1 time(s) in 1 post(s)
|
Hello, For files with no extension is necessary to change the uploader settings and use the following code: Code:converters: [
{ mode: '*=SourceFile' },
],
|
Best regards, Dmitri Vorobyov
|
|
|
|
Rank: Newbie
Groups: Member
Joined: 5/18/2015(UTC) Posts: 2
|
Thanks! That did it (removing the beginning *. from the mode parameter). Now, on to actually getting the files to show-up on the server ;)
|
|
|
|
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.