Thanks. But now I have to understand how to do this. I'm a Python guy...

2010/5/11 Jaroslav Záruba <[email protected]>

> I've replied to your private address, I think we moved off the AppEngine
> topic.
>
>
> On Mon, May 10, 2010 at 8:06 PM, Massimiliano <
> [email protected]> wrote:
>
>> What you mean with *"**Keep in mind that anyone skilled enough will obey
>> any client-based restriction you put in your application, if they decide to
>> do so." *?
>>
>> 2010/5/10 Jaroslav Záruba <[email protected]>
>>
>>> I don't know of any w3c-only. You might try some java-applet or flash
>>> uploaders (I'm using SWFUpload), they have usually wider range of options
>>> you can set-up.
>>>
>>> Keep in mind that anyone skilled enough will obey any client-based
>>> restriction you put in your application, if they decide to do so. Even with
>>> the client-side check you better make the last one on server.
>>>
>>> On Mon, May 10, 2010 at 7:42 PM, Massimiliano <
>>> [email protected]> wrote:
>>>
>>>> Isn't there a HTML way?
>>>>
>>>> 2010/5/10 Jaroslav Záruba <[email protected]>
>>>>
>>>>> Oh and in case you were asking about *client-side* rejecting
>>>>> possibilities, I don't care about those much as I don't think they are 
>>>>> 100%
>>>>> bullet-proof. One better not trust anything that comes from a web-browser.
>>>>> :)
>>>>>
>>>>>
>>>>> 2010/5/10 Jaroslav Záruba <[email protected]>
>>>>>
>>>>>> I'm Java-guy...
>>>>>> ...so I would 'route' the uploads to my own request in which I would
>>>>>> check what 'content-length' header of the incoming request contains. If 
>>>>>> it
>>>>>> exceeded the limit I would reject that request by sending proper 
>>>>>> HTTP-status
>>>>>> and returning without fetching the post data. If the content-length was 
>>>>>> OK I
>>>>>> would call createUploadUrl and either a) forwarded the request to that
>>>>>> address, which is easier or b) open a URLConnection and copy the 
>>>>>> POST-data
>>>>>> data into it, which lets you write to response.
>>>>>> This is how I actually do it on my app, save for the content-length
>>>>>> check as I don't let upload anyone else..
>>>>>>
>>>>>> On Mon, May 10, 2010 at 5:58 PM, Massimiliano <
>>>>>> [email protected]> wrote:
>>>>>>
>>>>>>> how I can reject the upload? I don't want to start the upload, but
>>>>>>> display a message error.
>>>>>>>
>>>>>>> Massimiliano
>>>>>>>
>>>>>>> 2010/5/10 Jaroslav Záruba <[email protected]>
>>>>>>>
>>>>>>> 1) Enabling billing does not mean your free quote goes away. I have
>>>>>>>> billing enabled and I'm still in "a free mode". (I'm still in the dev. 
>>>>>>>> phase
>>>>>>>> with my project anyways.)
>>>>>>>>
>>>>>>>> 2) As for limiting uploads: You can hide the uploadUrl behind your
>>>>>>>> own servlet and reject uploads over limit within it. Or you can let 
>>>>>>>> user
>>>>>>>> upload whole file and delete it in the successUrl-servlet afterwards.
>>>>>>>>
>>>>>>>> Regards
>>>>>>>>   J. Záruba
>>>>>>>>
>>>>>>>> On Mon, May 10, 2010 at 5:45 PM, Massimiliano <
>>>>>>>> [email protected]> wrote:
>>>>>>>>
>>>>>>>>> Dear all,
>>>>>>>>> first of all: *"**You must have billing enabled in your app to use
>>>>>>>>> the Blobstore." *Is this still true? Is my free quota 1 giga?
>>>>>>>>> I don't want to enable billing, as this is a hobby, I'm not an IT.
>>>>>>>>>
>>>>>>>>> Second I want my users to upload image, but I want to limit them
>>>>>>>>> with file not lager than a specific quota. How can I do this?
>>>>>>>>>
>>>>>>>>> Regards
>>>>>>>>>
>>>>>>>>> Massimiliano
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>>
>>>>>>>>> My email: [email protected]
>>>>>>>>> My Google Wave: [email protected]
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> 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]<google-appengine%[email protected]>
>>>>>>>>> .
>>>>>>>>> For more options, visit this group at
>>>>>>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>>>>>>
>>>>>>>>
>>>>>>>>  --
>>>>>>>> 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]<google-appengine%[email protected]>
>>>>>>>> .
>>>>>>>> For more options, visit this group at
>>>>>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>>
>>>>>>> My email: [email protected]
>>>>>>> My Google Wave: [email protected]
>>>>>>>
>>>>>>> --
>>>>>>> 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]<google-appengine%[email protected]>
>>>>>>> .
>>>>>>> For more options, visit this group at
>>>>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>>>>
>>>>>>
>>>>>>
>>>>>  --
>>>>> 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]<google-appengine%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> My email: [email protected]
>>>> My Google Wave: [email protected]
>>>>
>>>> --
>>>> 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]<google-appengine%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/google-appengine?hl=en.
>>>>
>>>
>>>  --
>>> 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]<google-appengine%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine?hl=en.
>>>
>>
>>
>>
>> --
>>
>> My email: [email protected]
>> My Google Wave: [email protected]
>>
>> --
>> 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]<google-appengine%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine?hl=en.
>>
>
>  --
> 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]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>



-- 

My email: [email protected]
My Google Wave: [email protected]

-- 
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.

Reply via email to