Opened 16 years ago

Closed 16 years ago

#1762 closed Task (fixed)

Clarificaton needed on FileUpload and QuickUpload

Reported by: Michael Osipov Owned by: Michael Osipov
Priority: Normal Milestone: FCKeditor.Java 2.4
Component: General Version: FCKeditor 2.5.1
Keywords: Cc:


I am going thru some examples and some things look very odd.

Just for the record, if I upload a file thru the resource browser, I have to supply: Command, Type, CurrentFolder, NewFile and the POST body

Lets get to the Quick UPload

  1. This document says

Quick Uploader works like File Upload, but how am I supposed to differ the request and send the appropriate script reply?

  1. I profiled the image quick upload with firebug and noticed that almost none of there parameters are sent at all. See image attachment.

It does not seem correct to me! Please clarify!

Attachments (1)

failedupload.png (28.5 KB) - added by Michael Osipov 16 years ago.

Download all attachments as: .zip

Change History (7)

Changed 16 years ago by Michael Osipov

Attachment: failedupload.png added

comment:1 Changed 16 years ago by Michael Osipov

Summary: Clarificaton needed on Fie Upload and QuickUploadClarificaton needed on FileUpload and QuickUpload

comment:2 Changed 16 years ago by Frederico Caldeira Knabben

For all other languages we have a separated page that handles QuickUploads (names upload.ext). All other requests go to connector.ext. Check out the upload.php for example. That file reuses the FileUpload command from the connector.

Having a dedicated page, makes it useless to pass the command. Also, QuickUploads will always endup in the same folder, so we don't need the target folder path too. All we need is the resource type and the NewFile.

I would always recommend you checking the way things got implemented in other languages, specially PHP and ASP.NET. You would take many hints from that code.

comment:3 Changed 16 years ago by Alfonso Martínez de Lizarrondo

Just a note on the previous comment: the quickupload command does allow on the server side to receive the type and a folder like the normal upload. As Frederico has said, the best suggestion is to check the rest of the connectors as all of them implement the same logic.

comment:4 Changed 16 years ago by Michael Osipov

Milestone: FCKeditor.Java 2.4
Owner: set to Michael Osipov

OK, thx guys. I will do this as soon as possible!

comment:5 Changed 16 years ago by Michael Osipov

Status: newassigned

comment:6 Changed 16 years ago by Michael Osipov

Resolution: fixed
Status: assignedclosed

Fixed in SVN

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy