Comments (9)
Yes!
from vmgui.
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.
@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.
I think a 5 Mb limit for the Assignment file would be ok for now.
from vmgui.
Fixed size or not, the form validation must be written, so we'd better write it correctly.
from vmgui.
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.
@bogdans83 , I wouldn't mind having a checklist, thanks:)
from vmgui.
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.
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)
- Create list with assignments of current subject HOT 1
- Create sumission channel
- Create submissions by assignment_id list widget
- Create submission page
- Create submission details widget
- Create assignment short details widget for submission page HOT 1
- Replace outdated comments in modules/dashboard_controller.coffee
- Remove unused subjects_params in modules/dashboard_controller.coffee
- Replace outdated comments in modules/userstosubjects_widget.coffee
- Replace external links with internal links in userstosubjects_widget.coffee
- Fix params passing to subjects_details_widget
- Make custom.css including configurable
- Populate database with something nice by hand from Django admin
- Assignemnts by subject id template should show a link to the assignment
- Create breadcrumbs navigation
- Create the layout for subjects page
- Create basic layout for assignments page
- Create basic layout for dashboard page
- Create basic layout for submissions page
- Apply breadcrumbs design from bootstrap
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vmgui.