Giter Club home page Giter Club logo

Comments (9)

aismail avatar aismail commented on August 23, 2024

Yes!

from vmgui.

valenting avatar valenting commented on August 23, 2024

It think it should be 0.5 Mb by default, but you should be able to choose a new value when creating a new Assignment.

from vmgui.

AndreiDuma avatar AndreiDuma commented on August 23, 2024

@aismail , @valenting , should we add a field max_size to the Assignment model?

http://stackoverflow.com/a/11222845/626964 provides a solution for validating both type and size.

from vmgui.

valenting avatar valenting commented on August 23, 2024

I think a 5 Mb limit for the Assignment file would be ok for now.

from vmgui.

AndreiDuma avatar AndreiDuma commented on August 23, 2024

Fixed size or not, the form validation must be written, so we'd better write it correctly.

from vmgui.

bogdans83 avatar bogdans83 commented on August 23, 2024

PS: This is one of the cases where you cannot impose model validation and should use a form.

@AndreiDuma Do you need a checklist on how to create a form to get this done? It's actually quite interesting :) And also the tests for it

from vmgui.

AndreiDuma avatar AndreiDuma commented on August 23, 2024

@bogdans83 , I wouldn't mind having a checklist, thanks:)

from vmgui.

bogdans83 avatar bogdans83 commented on August 23, 2024

Will do, hope I can get one in place by tonight, eta: 2am

On Tue, Mar 26, 2013 at 9:25 AM, Andrei Duma [email protected]:

@bogdans83 https://github.com/bogdans83 , I wouldn't mind having a
checklist, thanks:)


Reply to this email directly or view it on GitHubhttps://github.com//issues/38#issuecomment-15444750
.

from vmgui.

aismail avatar aismail commented on August 23, 2024

Also besides for mvalidation, you should use webserver config in order to ensure that users don't upload large files.

from vmgui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.