DEV Community

Discussion on: Handling ActiveStorage direct uploads and server side form validations

Collapse
 
nameisvijay profile image
Vijay Meena • Edited

Oh, Just upgraded to rails 6 today in order to check behavior. Things are changed in rails 6 (atleast for non direct-uploaded file). Now, uploaded file will only persist to storage if post gets saved successfully. Thus there won't be orphaned for records which won't be saved.

I still feel that server may not get chance to validate during direct-upload. I have yet to check behavior for direct-upload