[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Delete a file after upload to server  XML
Forum Index -> Development
Author Message
uwinter

Active

Joined: 10/06/2013 09:04:50
Messages: 6
Offline

Hello,
in a small dialog our users can upload a file to the server. Therefore we use the fileuploadbutton. After the user selects a file it is uploaded to the server. The server performs several checks, to validate the content of the file.
Is it possible to delete this file on the client, after our checks were successful and the dialog was closed?

Regards Ulrich
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Hi,

no, this is not possible.
I believe we need to define an own component for this "CLIENTFILEREMOVER".

Urgency on your side?

Regards,
Björn

Björn Müller, CaptainCasa GmbH
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...don't have to respond to my last question.
Component is part of next Monday's update.

Regards, Björn

Björn Müller, CaptainCasa GmbH
uwinter

Active

Joined: 10/06/2013 09:04:50
Messages: 6
Offline

Hi Björn,
no, it is not urgent on our side. But thanks for the quick solution.
uwinter

Active

Joined: 10/06/2013 09:04:50
Messages: 6
Offline

Hi Björn,
we discovered a little Bug when using the clientfileremover. After triggering the deletion of a file a dialog is shown: "Do you want to remove the existing file?"
When "Remove" is pressed the file is deleted - ok. When "Cancel" is pressed, the file is not deleted, but after the next server-roundtrip the delete-dialog is shown again.
This is only a little bug, but it is very annoying.
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi CaptainCasa,

We have got a should request from our customer:
1. Prompt the user to delete a (usually non empty) directory
2. Get a callback to know if
- directory existed at all
- directory was succesfully deleted
- directory existed but could not be (completely) deleted, so it still exists
- User cancelled the deleting

Could you enhance the component "clientFileRemover" in the desired way?
At the time (CC-Version 20150715), there is no callback supported.
It is possible to delete a directory, but only if it is empty.

Regards, Daniel
[WWW]
Admin

Power User

Joined: 21/11/2007 11:36:10
Messages: 37
Offline

Hi Daniel,

please open up new messages for new wishes - although this shows that you first really search for existing issues, which is 200% perfect! ;-)

This sounds quite do-able, I will check if to re-use the existing component or if to introduce a new one. I will send some specification on this short term by mail.

Regards, Björn
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

Desired changes are part of CLIENTFILEREMOVER component.

1. It now is abled to delete directories
2. It now sends events to the server side. Server side event is: BaseActionEventClientFileRemovalMessage, with three parameters:
(.) success true/false
(.) file name
(.) message

Part of update 20160215

Regards, Björn

Björn Müller, CaptainCasa GmbH
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn

It works fine.

Could you just translate the window for "removing directory" (see attachment) into german?

Regards, Daniel
[Thumb - window_removedir.png]
 Filename window_removedir.png [Disk] Download
 Description window for "removing directory"
 Filesize 32 Kbytes
 Downloaded:  436 time(s)

[WWW]
levy

Power User

Joined: 12/03/2008 16:38:22
Messages: 308
Location: XpertCenter
Offline

Hi Björn

Would be great for me if translation is included soon.
Please let me know.

Regards, Daniel
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5520
Offline

...is part of next update!
THANKS! Björn

Björn Müller, CaptainCasa GmbH
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team