Skip to content

Commit

Permalink
Removed sessionid
Browse files Browse the repository at this point in the history
So far as I can tell, this isn't used.
Also see #1004
  • Loading branch information
orangejenny committed Sep 10, 2024
1 parent 21df873 commit 023e7a7
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ define([
$uploadBtn.click(function () {
widget.mediaRef.updateController(widget);
});

return $uploadBtn;
};

$.vellum.plugin("uploader", {
objectMap: false,
sessionid: false,
uploadUrls: {
image: false,
audio: false,
Expand All @@ -317,8 +317,7 @@ define([
var opts = this.opts().uploader,
uploadUrls = opts.uploadUrls,
uploadEnabled = opts.objectMap && opts.uploadUrls &&
opts.uploadUrls.image,
sessionid = opts.sessionid;
opts.uploadUrls.image;

this.data.uploader.uploadEnabled = uploadEnabled;
this.data.uploader.objectMap = opts.objectMap;
Expand All @@ -331,31 +330,26 @@ define([
'image': this.initUploadController({
uploaderSlug: 'fd_hqimage',
mediaType: 'image',
sessionid: sessionid,
uploadUrl: uploadUrls.image,
}),
'audio': this.initUploadController({
uploaderSlug: 'fd_hqaudio',
mediaType: 'audio',
sessionid: sessionid,
uploadUrl: uploadUrls.audio,
}),
'video': this.initUploadController({
uploaderSlug: 'fd_hqvideo',
mediaType: 'video',
sessionid: sessionid,
uploadUrl: uploadUrls.video,
}),
'video-inline': this.initUploadController({
uploaderSlug: 'fd_hqInlineVideo',
mediaType: 'video-inline',
sessionid: sessionid,
uploadUrl: uploadUrls.video,
}),
'text': this.initUploadController({
uploaderSlug: 'fd_hqtext',
mediaType: 'text',
sessionid: sessionid,
uploadUrl: uploadUrls.text,
})
};
Expand Down Expand Up @@ -497,8 +491,7 @@ define([
existingFileTemplate: PREVIEW_TEMPLATES[options.mediaType],
licensingParams: [
'shared', 'license', 'author', 'attribution-notes'],
uploadParams: {},
sessionid: options.sessionid
uploadParams: {}
};

return uploadController;
Expand Down

0 comments on commit 023e7a7

Please sign in to comment.