Replies: 1 comment 3 replies
-
Hi, the upload size limit is supported on a per-user basis, but currently there is no way reject a file from the upload hook. You can delete the file but no error is returned to the SFTP/FTP client. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I'm trying to add some controls on files which get uploaded (using FTP or SFTP, by unknown third parties). Most notably, I'd like to add ClamAV scanning, and reject files bigger than some threshold. I cannot use the pre-upload action, as at this point, nor the file size nor its content is available. I could use the upload action, but even if listed in execute_sync, and the hook replies with a 403 (it's an HTTP URL), the file is accepted, and acked to the client. Is there a way to execute an action just after the file is uploaded, check the file is OK, and if it's not, reject it with a notification to the client (a permission denied error) ?
Beta Was this translation helpful? Give feedback.
All reactions