Commit 3667a121 authored by Skia's avatar Skia
Browse files

Fix webcam upload

parent c4b1494e
Pipeline #151 failed with stage
in 1 minute and 31 seconds
......@@ -66,7 +66,7 @@
var data_uri = Webcam.snap();
var url = "{{ url('core:user_profile_upload', user_id=form.instance.id) }}";
Webcam.upload( data_uri, url, function(code, text) {
if (code == 200) {
if (code == 302 || code == 200) {
$('#new_profile').attr('src', data_uri);
$('#take_picture').remove();
$('#id_profile_pict').remove();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment