Create Profile\Photos\Upload class

This commit is contained in:
Hypolite Petovan
2022-10-30 00:17:54 -04:00
parent f826ce70ce
commit 39765e6018
6 changed files with 296 additions and 15 deletions

View File

@@ -103,7 +103,7 @@ var FileBrowser = {
if ($("#upload-image").length)
var image_uploader = new window.AjaxUpload(
'upload-image',
{ action: 'wall_upload/'+FileBrowser.nickname+'?response=json',
{ action: 'profile/' + FileBrowser.nickname + '/photos/upload?response=json',
name: 'userfile',
responseType: 'json',
onSubmit: function(file,ext) { $('#profile-rotator').show(); $(".error").addClass('hidden'); },