Content tagged with "upload"

Django: Private File Upload and Serving

30th September 2010 in Coding

The standard Django FileFields assume you want to upload a file in a subdirectory of MEDIA_ROOT, what if you want to upload the file in a private directory above the web root, not accessible via http?
How can you serve the files then?

continue reading "Django: Private File Upload and Serving"

Django: FileField with ContentType and File Size Validation

24th September 2010 in Coding

Immagine that you need to add the possibility to upload a PDF or Zip file in the django admin, but you want to be sure your client will upload only these two filetypes and not other ones.
You might also need the same functionality in the frontend, so why not use "ModelForm" and have just one validation for both applications (admin and frontend)?

In this short post I'll share with you my simple solution.

continue reading "Django: FileField with ContentType and File Size Validation"

Categories

Let's be social

Popular posts

Latest Comments

  1. I can make more customers for your business without ripping your pocket I Can Contact for more details? David

    By Davidwrice in How to speed up tests with Django and PostgreSQL

  2. Adult blog with daily updates daily quotes of wisdom what antonyms and synonyms are underwear man http://sissyabuse.blogporn.in/?profile.iyana sequined skirt free porno of girls herbs estrogen hardsteel chastity wife cheat toronto breast implants gallery of contemporary art mens sexo

    By suzannetu2 in OpenWISP at IETF Bangkok

  3. I got very good results with this, thanks for sharing.

    By Yasir Atabani in How to speed up tests with Django and PostgreSQL

  4. Hi Amad, for any question regarding OpenWISP, use one of the support channels: http://openwisp.org/support.html

    By Federico Capoano in How to install OpenWISP

  5. Sir please guid , i have install the ansible-openwisp2 , now how to add the access points . What is the next procedure . Please help.

    By Ahmad in How to install OpenWISP

Popular Tags

battlemesh censorship creativity criptography django event fosdem google-summer-of-code ibiza inspiration javascript jquery linux nemesisdesign netjson ninux nodeshot open-source openwisp openwrt performance photo programming python security staticgenerator talk upload wifi wireless-community