Mestari

Bricksafe - Can't Upload File To A Folder

Recommended Posts

Seems like there is an issue with creating new pages, they don't show up in the dropdown menu on the upload page. I guess the cache isn't being expired correctly. I'll let Nathan know, thanks.

 

In the meantime, you can simply navigate into the newly created folder, and then drag and drop pictures on it to upload directly to that folder.

Share this post


Link to post
Share on other sites

Did you navigate into the new folder as opposed to dropping the images on the thumbnail of the folder?

Share this post


Link to post
Share on other sites

No, I didn't. I have tried this now and have different results. Still doesn't work.

 

I get a message: "SyntaxError: Unexpected end of input". I have tried with several files to different locations, even to a folder that used to work before.

On the console this is the object that gets displayed:

 

Object {disabled: false, create: null, dropZone: x.fn.x.init[1], pasteZone: x.fn.x.init[1], replaceFileInput: true…}_bitrateTimer: Object_processQueue: Object_progress: Object_response: Object_time: 1428048819982abort: function (){if(this.jqXHR){return this.jqXHR.abort();}add: function (e, data) {autoUpload: falsebitrate: 23100151.89873418bitrateInterval: 500blob: nullcache: falsecontentType: falsecontext: x.fn.x.init[1]create: nulldata: FormDatadataType: "json"destroy: function (e,data){var that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),removeNode=function(){that._transition(data.context).done(function(){$(this).remove();that._trigger('destroyed',e,data);});};if(data.url){$.ajax(data).done(removeNode);}else{removeNode();}}disableImageResize: truedisabled: falsedone: function (e,data){var that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),getFilesFromResponse=data.getFilesFromResponse||that.options.getFilesFromResponse,files=getFilesFromResponse(data),template,deferred;if(data.context){data.context.each(function(index){var file=files[index]||{error:'Empty file upload result'},deferred=that._addFinishedDeferreds();that._transition($(this)).done(function(){var node=$(this);template=that._renderDownload([file]).replaceAll(node);that._forceReflow(template);that._transition(template).done(function(){data.context=$(this);that._trigger('completed',e,data);that._trigger('finished',e,data);deferred.resolve();});});});}else{template=that._renderDownload(files).appendTo(that.options.filesContainer);that._forceReflow(template);deferred=that._addFinishedDeferreds();that._transition(template).done(function(){data.context=$(this);that._trigger('completed',e,data);that._trigger('finished',e,data);deferred.resolve();});}}downloadTemplate: function (e){return r(e,n)}downloadTemplateId: "template-download"dropZone: x.fn.x.init[1]errorThrown: SyntaxError: Unexpected end of inputfail: function (e, data) {fileInput: x.fn.x.init[1]files: Array[1]filesContainer: x.fn.x.init[1]forceIframeTransport: falseform: x.fn.x.init[1]formAcceptCharset: undefinedformData: function (form){return form.serializeArray();}getFilesFromResponse: function (data){if(data.result&&$.isArray(data.result.files)){return data.result.files;}getNumberOfFiles: function (){return this.filesContainer.children().length;}headers: Objecti18n: function (message,context){message=this.messages[message]||message.toString();if(context){$.each(context,function(key,value){message=message.replace('{'+ key+'}',value);});}imageCrop: falseimageMaxHeight: 1080imageMaxWidth: 1920jqXHR: ObjectlimitConcurrentUploads: 3loadImageFileTypes: /^image\/(gif|jpeg|png)$/loadImageMaxFileSize: 10000000loaded: 228114maxChunkSize: 1000000maxRetries: 3messages: Objectmultipart: trueoriginalFiles: Array[1]paramName: Array[1]pasteZone: x.fn.x.init[1]prependFiles: falsepreviewCanvas: truepreviewCrop: falsepreviewMaxHeight: 80previewMaxWidth: 80previewOrientation: truepreviewThumbnail: trueprocess: function (resolveFunc,rejectFunc){if(resolveFunc||rejectFunc){data._processQueue=this._processQueue=(this._processQueue||getPromise(this)).pipe(resolveFunc,rejectFunc);}processData: falseprocessQueue: Array[8]processstart: function (){$(this).addClass('fileupload-processing');}processstop: function (){$(this).removeClass('fileupload-processing');}progress: function (){return this._progress;}progressInterval: 100progressall: function (e,data){var $this=$(this),progress=Math.floor(data.loaded/data.total*100),globalProgressNode=$this.find('.fileupload-progress'),extendedProgressNode=globalProgressNode.find('.progress-extended');if(extendedProgressNode.length){extendedProgressNode.html(($this.data('blueimp-fileupload')||$this.data('fileupload'))._renderExtendedProgress(data));}recalculateProgress: trueredirect: "http://www.bricksafe.com/pages/js/jQuery-File-Upload/cors/result.html?%s"replaceFileInput: trueresponse: function (){return this._response;}retryTimeout: 500send: function (e,data){var that=$(this).data('blueimp-fileupload')||$(this).data('fileupload');if(data.context&&data.dataType&&data.dataType.substr(0,6)==='iframe'){data.context.find('.progress').addClass(!$.support.transition&&'progress-animated').attr('aria-valuenow',100).find('.bar').css('width','100%');}sequentialUploads: falsesingleFileUploads: truestart: function (e){var that=$(this).data('blueimp-fileupload')||$(this).data('fileupload');that._resetFinishedDeferreds();that._transition($(this).find('.fileupload-progress')).done(function(){that._trigger('started',e);});}state: function (){if(this.jqXHR){return that._getDeferredState(this.jqXHR);}stop: function (e){var that=$(this).data('blueimp-fileupload')||$(this).data('fileupload'),deferred=that._addFinishedDeferreds();$.when.apply($,that._getFinishedDeferreds()).done(function(){that._trigger('stopped',e);});that._transition($(this).find('.fileupload-progress')).done(function(){$(this).find('.progress').attr('aria-valuenow','0').find('.bar').css('width','0%');$(this).find('.progress-extended').html(' ');deferred.resolve();});}submit: function (){if(this.state()!=='pending'){data.jqXHR=this.jqXHR=(that._trigger('submit',e,this)!==false)&&that._onSend(e,this);}templatesContainer: tbodytextStatus: "parsererror"total: 228114type: "POST"uploadTemplate: function (e){return r(e,n)}uploadTemplateId: "template-upload"uploadedBytes: 0url: "/aj/aj_upload_files.php"xhr: function (){return xhr;}__proto__: Object

Share this post


Link to post
Share on other sites

That's weird, it works for me  :(

 

Nathan is currently away, he will take a look when he's back. Apologies!

Share this post


Link to post
Share on other sites

Now the upload to existing folder works, so I created another one. And with this it's the same story, it's not even visible on the upload page dropdown menu, can't drag and drop there.

Share this post


Link to post
Share on other sites

I've disabled the caching that is causing the problem, so should work now.

Share this post


Link to post
Share on other sites