|
@@ -13,10 +13,6 @@ import cStringIO as StringIO |
|
|
# Database access imports |
|
|
# Database access imports |
|
|
from .models import User, Place, Tiers, Event |
|
|
from .models import User, Place, Tiers, Event |
|
|
|
|
|
|
|
|
@view_config(route_name='media_uploadform',request_method='GET', renderer='jm2l:templates/upload.mako') |
|
|
|
|
|
def imageupload(request): |
|
|
|
|
|
return {'actionurl':request.route_url('imageupload',sep='',name='')} |
|
|
|
|
|
|
|
|
|
|
|
MIN_FILE_SIZE = 1 # bytes |
|
|
MIN_FILE_SIZE = 1 # bytes |
|
|
MAX_FILE_SIZE = 500000000 # bytes |
|
|
MAX_FILE_SIZE = 500000000 # bytes |
|
|
IMAGE_TYPES = re.compile('image/(gif|p?jpeg|(x-)?png)') |
|
|
IMAGE_TYPES = re.compile('image/(gif|p?jpeg|(x-)?png)') |
|
|