I want to let my users upload small files (1 Mb < size < 10 Mb) for further processing and deletion. Somehow I'm sure that there will be no more than 100 uploaded unprocessed files at every moment, so, I assume I won't go above free blobstore quota in the very most cases, so I setup quota cap for stored data at 2 Gb and am sure that 1. I will pay at most some cents a day, rarely, 2. there can be no "over quota" error.
However, after reading docs and some testing it seems that I shouldn't be so sure. I can restrict files >10 Mb no earlier they are uploaded and counted towards quota (by deleting them in servlet after checking their size), so - anyone just uploads 2 Gb file everyday to make me pay those "some cents". Moreover, for the very short period of time between file is uploaded and servlet checked its size and deleted other users can get "over quota" error. Also I have a thought on how to consume N * 2 Gb of quota, making app owner pay more than just "some cents" in case his quota cap for stored data is much higher than 2 Gb. The questions are 1. Is there a way to restrict file uploads on some condition before they were counted towards quota? 2. If no, is it planned? -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
