You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/05/27 04:06:06 UTC

[GitHub] [incubator-superset] tooptoop4 opened a new issue #9914: CSV Upload - add max filesize limit

tooptoop4 opened a new issue #9914:
URL: https://github.com/apache/incubator-superset/issues/9914


   For maintaining quality of service I don't want users sending > GB files
   
   https://flask.palletsprojects.com/en/1.1.x/patterns/fileuploads/ mentions 
   
   
   But how do you specify the maximum file size after which an upload is aborted? By default Flask will happily accept file uploads to an unlimited amount of memory, but you can limit that by setting the MAX_CONTENT_LENGTH config key:
   
   from flask import Flask, Request
   
   app = Flask(__name__)
   app.config['MAX_CONTENT_LENGTH'] = 16 * 1024 * 1024
   The code above will limit the maximum allowed payload to 16 megabytes. If a larger file is transmitted, Flask will raise a RequestEntityTooLarge exception.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] commented on issue #9914: CSV Upload - add max filesize limit

Posted by GitBox <gi...@apache.org>.
stale[bot] commented on issue #9914:
URL: https://github.com/apache/incubator-superset/issues/9914#issuecomment-663892124


   This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue `.pinned` to prevent stale bot from closing the issue.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] stale[bot] closed issue #9914: CSV Upload - add max filesize limit

Posted by GitBox <gi...@apache.org>.
stale[bot] closed issue #9914:
URL: https://github.com/apache/incubator-superset/issues/9914


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org