I have an angular 2 project that allows me to download files through a service and I know the file has been successfully downloaded as I can see the following console message:
this.rest.getGeometry(this.stlLocation).subscribe(data => console.log('file downloaded successfully'));
A look at the Network tab in the "Developer tools" confirms that the download was successful.
is it possible to save the file to a local folder such as src/app/assets?
Thank you for your help,
Dino
Related
I am using angularjs.I am getting zip file URL from the server.
I am using below code to download my file.
Example 1
Filename comes from the angular controller.
From the above code I will be able to download the file but in the download folder.How can I download that file in specified location ?
just open that link in new tab it will automatically be download.
window.open(wholeURLToDownload);
I'm creating an app with ionicframework. I want that the user can downolad pdf files which are in the app. In which folder i must place the files, in template folder? How can the user download the files, i must use < a ui-sref="file.pdf" >< /a >?
Thank you.
If your PDF files are in the application, you could save them in temporary filesystem and after open with default app (move them).
To get access to the device’s files and directories, you need work with plugin $cordovaFile (http://ngcordova.com/docs/plugins/file/). Here you will find the file system layout.
To open a file on your device with its default application use $cordovaFileOpener2 (http://ngcordova.com/docs/plugins/fileOpener2/)
I'm trying don't move file.
I used InAppBrowser plugin (in ionic 2 project) and i have a 'a.pdf' file in 'www' folder. i use this code:
In .js file:
> openURL(url) {
> InAppBrowser.open(url,'_system','location=yes'); }
In .html file:
<button (click)="openURL('a.pdf')">Open pdf
</button>
When i press on button the device ask me to select a program to open file, then i select adobe reader pdf. But adobe reader pdf tells me 'impossible to load file ...'.
What is the right path (url) to call openURL(url)?
Thank you.
I have PDF file located in the local file system,
local file path:
C:\pdf\sample.pdf
How do i open the pdf file in the browser using angularjs.
I hope it may help just follow the instructions and there is an example in the zip file try it.
http://ngmodules.org/modules/ng-pdfviewer
I am trying to install an app on parallels plesk panel 11.0.9. I opened the app folder and then edited in the APP-META.xml file I edited the app configuration. After that I updated the APP-LIST.xml and tried to upload the file to the panel, but when I did that I got this error:
Error: The app could not be added: Failed to find APP-META.xml in archive /tmp/test.app.zip. (Empty error message).
I am sure that APP-META.xml exists what I am missing ??
Any help
Looks like your archive has root folder:
/some_folder_name
/some_folder_name/APP-META.xml
/some_folder_name/ ... other files here ...
whereas it should be in root of archive:
/APP-META.xml
/... other files here ...
I need dotnetnuke fck editor's source code. Can you please give me directions for editing the fck editors source?
I need to add images to portal root folder externally.after uploading image it cannot select from the image manager. Image manager only show files uploaded from image manager.
FCKeditor provider is not a part of the DNN source package anymore, but you can find it at:
http://dnnfckeditor.codeplex.com
Image gallery checks that the portal has read permissions to the folder, and filters the files by extension, allowing only image files. But you should see all the image files, regardless if they show up in the DNN file manager.
But still, I would check if the files are visible in the DNN file manager, and if not, run "Synchronize Files" from the root level.
working:
the dnn source editor image gallery is working from the database.ie.if you manually copy a file into the portal folder it does not visible in the fck editor gallery.the file listing is done from the databese.
so the solution is,you should make a uploader section for uploading images and give an entry in nuke's file table.then it will visible in gallery.
There's a source package for the editor provider at http://dnnfckeditor.codeplex.com/