I get the error below when I add either a post.pre_process or a post.post_process script to the file api.
Here is the error from the web.*.log file:
I am trying to upload files via the files api using the android sdk. Without the scripts, file uploads of any kind are successful. However, pictures(.jpg and png) files result in the above error when either script type is enabled.
After doing some troubleshooting, I realized that the contents of the scripts did not matter. Having even empty scripts caused .picture uploads to fail with the same exact error above.