HARISURYANARAYANA Member since 2013 4 posts
Posted: 1 year ago
Last activity: 1 year 5 months ago

Files Upload and Download

Hi, we have a file listner running on folder which is not part of static content and its subfolders.

an external job places files in that folder.

Now we have to implement upload capability in our, we are adding layout in main portal for upload.(files are not related to workitem's attachments)

Now i have below questions

1. I need to upload the file to desired folder not to the service export(we shouldnt change the service export path, as i need specefic target for this upload only). how can we achive this.we dont want to move file from standard folder to our desired folder with java. as thats kind of writing file in server folder two times.

(my thought getting httprequest object and read the submitted from data and write to folder, but this may leave file in static content too.)

2. as we have fixed number of file names which are allowed there is a possibility that two users can upload same file alomost same time, so we want to rename the file before uploading with user id and time. how can i achive this?

(Something needed in javascript before upload, kind of overriding formdata elements. but i am missing something here)

3. we have a wizard/screen to display recent uploades, where business users can see the file names and download those. in file listners porcessing we are placing file names in table. so we can build a report on top of that table. but we need to provide ability to download the files which are in completed folder. setting file path to pxRequestor.pyFiledownload is working if file is static content. but its not working for other places.

(I am thinking to user prout object, if there is no easy way)

Data Integration Java and Activities
Moderation Team has archived post
Share this page LinkedIn