Skip to content

Bulk Upload Fails if there is a ftSizeLimit on the SourceImage #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: p720
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/formtools/image.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -966,7 +966,7 @@

<cfelse>

<cfif arguments.sizeLimit and arguments.sizeLimit lt stFile.fileSize>
<cfif arguments.sizeLimit and arguments.sizeLimit lt application.fc.lib.cdn.ioGetFileSize(location="images",file=listLast(arguments.existingfile, "/\"))>
<cfset stResult = failed(value=arguments.existingfile,message="#arguments.localfile# is not within the file size limit of #round(arguments.sizeLimit/1048576)#MB") />
<cfelseif listFindNoCase(arguments.allowedExtensions,listlast(arguments.localfile,"."))>
<cfset uploadFileName = application.fc.lib.cdn.ioMoveFile(source_localpath=arguments.localfile,dest_location="images",dest_file=arguments.destination & "/" & getFileFromPath(arguments.localfile),nameconflict="makeunique") />
Expand Down