Skip to content

Commit abd492b

Browse files
author
imsujinpark
committed
Remove error condition for file state "attached_temporary"
1 parent eee9314 commit abd492b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/files_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1140,7 +1140,7 @@ def api_create_success
11401140
return unless quota_exempt? || check_quota_after_attachment
11411141

11421142
if Attachment.s3_storage?
1143-
return head(:bad_request) unless @attachment.state == :unattached
1143+
return head(:bad_request) unless [:attached, :attached_temporary].include?(@attachment.state)
11441144

11451145
details = @attachment.s3object.data
11461146
@attachment.process_s3_details!(details)

0 commit comments

Comments
 (0)