cancel
Showing results for 
Search instead for 
Did you mean: 

Directory Upload instead of FileUpload

b_deterd2
Active Contributor
0 Kudos

Hi,

I know there is a FileUpload UI element and this works fine.

In the same way I want to be able to select a certain (local) directory. Is there a way to do this?

Regards,

Bert

Accepted Solutions (0)

Answers (1)

Answers (1)

uday_gubbala2
Active Contributor
0 Kudos

Hi Bert,

There is no possibility to upload a directory as of such in WDA. You can at most make use of the [ACFUpDownload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/47/b9157c878a2d67e10000000a42189c/content.htm] UI element to provide the ability to upload multiple files at a time.

Regards,

Uday

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Security restrictions on the client side limit the amount of access to the filesystem. Therefore in plain HTML you can't get a file listing for a directory, nor can you even upload more than one file at a time.

With 7.01 we have AcfUpDownload. It is a Java Applet that allows greater access to the file system. While it can do multiple file uploads and downloads, it doesn't have any functionality to scan a directory and return a list of files. Nor is there any file open/save dialog. It was designed for DMS (Document Management System) Check-in and Check-out. Primarily in 7.01 it can mostly be used for check-out and and check-in from the checked-out location.

In 7.02, we will enhance AcfUpDownload to include a file open/save dialog. Then the user could manually select all files in a directory and upload them. However this function isn't available yet as 7.02 won't be available until next year.

In the mean time, you might consider using Adobe Flex as a Flash Islands within your Web Dynpro ABAP application. I've got an eLearning on how to use Flash Islands as a multiple file uploader:

https://wiki.sdn.sap.com/wiki/display/EmTech/IslandsWDA_MUploader