Opened 17 years ago
Closed 17 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: |
Description
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
- This document says
Quick Uploader works like File Upload, but how am I supposed to differ the request and send the appropriate script reply?
- 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)
Change History (7)
Changed 17 years ago by
Attachment: | failedupload.png added |
---|
comment:1 Changed 17 years ago by
Summary: | Clarificaton needed on Fie Upload and QuickUpload → Clarificaton needed on FileUpload and QuickUpload |
---|
comment:2 Changed 17 years ago by
comment:3 Changed 17 years ago by
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 17 years ago by
Milestone: | → FCKeditor.Java 2.4 |
---|---|
Owner: | set to Michael Osipov |
OK, thx guys. I will do this as soon as possible!
comment:5 Changed 17 years ago by
Status: | new → assigned |
---|
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.