strip container from profile

This commit is contained in:
j 2010-09-05 23:08:05 +02:00
parent 3cdd52912e
commit c9c597b378

View file

@ -198,10 +198,11 @@ class VideoChunkForm(forms.Form):
@login_required_json @login_required_json
def firefogg_upload(request): def firefogg_upload(request):
profile = request.GET['profile'] profile = request.GET['profile']
if profile.endswith('.webm'):
profile = os.path.splitext(profile)[0]
oshash = request.GET['oshash'] oshash = request.GET['oshash']
#handle video upload #handle video upload
if request.method == 'POST': if request.method == 'POST':
#post next chunk #post next chunk
if 'chunk' in request.FILES and oshash: if 'chunk' in request.FILES and oshash:
f = get_object_or_404(models.File, oshash=oshash) f = get_object_or_404(models.File, oshash=oshash)