Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

django-uuid-upload

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

django-uuid-upload

Store Django uploaded files as UUID files or inside UUID directories

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
1

django-uuid-upload

Library for Django that automatically stores uploaded files as mydir/{uuid}.jpg or mydir/{uuid}/original.jpg.

Installation

::

    pip install django-uuid-upload

Usage

.. code:: python

from django.db import models
from django_uuid_upload import upload_to_uuid

class Post(models.Model):
	# Store uploaded files as posts/{uuid}.jpg
	image = models.ImageField(upload_to=upload_to_uuid('posts'))
	
	# Or, store uploaded files as posts/{uuid}/original.jpg
	image = models.ImageField(upload_to=upload_to_uuid('posts', make_dir=True))

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc