{"name":"upload","helper":"rui_upload","complexity":"moderate","param_count":20,"slot_count":0,"form_builder":true,"standalone":true,"ai_score":7,"human_score":7,"token_estimate":120,"slots":{},"gotchas":[{"id":"upload_max_file_size_rename","severity":"medium","component":"rui_upload","summary":"max_file_size: renamed to max_file_size_bytes: — old param emits deprecation warning","params":["max_file_size","max_file_size_bytes"],"behavior":"The upload file size limit param was renamed to max_file_size_bytes: to be explicit about the unit. Old param emits deprecation warning.","wrong":"\u003c%= rui_upload(:avatar, max_file_size: 2.megabytes) %\u003e","right":"\u003c%= rui_upload(:avatar, max_file_size_bytes: 2.megabytes) %\u003e","notes":"Value is bytes. Use Rails helpers: 2.megabytes, 1.gigabyte, 500.kilobytes.","detection":"Scan for max_file_size: not followed by _bytes. Regex: /max_file_size:\\s*[^_]/","recovery":"Rename max_file_size: to max_file_size_bytes: in all rui_upload calls."}],"families":[],"compositions":[],"relationships":{"composes_with":[],"slotted_into":[],"confused_with":[]}}