mirror of
https://github.com/pinry/pinry.git
synced 2025-11-15 09:25:50 +01:00
Feature: Use new image-creation api instead of the old
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
|
||||
|
||||
$(window).load(function() {
|
||||
var api_base = "/api/v2/";
|
||||
|
||||
var uploadedImage = false;
|
||||
var editedPin = null;
|
||||
|
||||
@@ -99,8 +101,8 @@ $(window).load(function() {
|
||||
}
|
||||
// Drag and drop upload
|
||||
$('#pin-form-image-upload').dropzone({
|
||||
url: '/pins/create-image/',
|
||||
paramName: 'qqfile',
|
||||
url: api_base + "images/",
|
||||
paramName: 'image',
|
||||
parallelUploads: 1,
|
||||
uploadMultiple: false,
|
||||
maxFiles: 1,
|
||||
|
||||
Reference in New Issue
Block a user