Closed krismukku closed 2 years ago
@krismukku
We are investigating this scenario. Please spare us some time and we'll update you.
@krismukku
Is there a way to bypass that step and directly load a file that is passed from the web form.
Currently, this feature is not supported in demo application. However, we'll implement it. Please keep track of this GitHub issue. However, we'd recommend you to post such issues on our free support forum.
@krismukku
Meanwhile, have a look at following workaround.
Setup file for upload programmatically
You can do this via _annotationService. You could add following code after constructor in app.component.ts
:
_annotationService.upload(null, "https://softmap.ru/upload/uf/f44/f44385fcaae32331408c179d25ff6072.png", true).subscribe((data) => {
this.selectDir("");
this.selectFile(data["guid"], "", "");
});
Hi There,
We have a requirement wherein some of the pre-uploaded files need to be programmatically loaded in a viewer so the user can review and redact any sensitive information before saving it back. We have been reviewing the documentation for annotation control but cannot find any guidance on how we can programmatically pass a file id to the angular component and make it load. The current samples expect a file upload button to be clicked and it loads all documents from the samples folder and selecting one of the files from that list gets loaded in the viewer. Is there a way to bypass that step and directly load a file that is passed from the web form. We cannot find a way to pass any value without modifying the angular component. Any help is greatly appreciated.
I can be reached at kmukku@cma.com