How can I set security to download file in vue.js - vue.js

I don't want guests are able to download files (pdf, word .etc).At first users must log in to download files. How can I get information about it?

Related

Unable to make .vcf file download able

I am stuck in a problem while building a digital business Card on wordpress, Please help me out with this problem.
Problem
I want to add an option of save the card means save the cotact details directly by just clicking/hiting that button in my digital business card, For that i also created one dedicated folder in my Database for vcf file with the name of Uploads and in this folder i also paste a php file for vcard after guidning by the chat support of hostinger but that only works for that particular vcf file whose name is mentioned in the php but also it is only downloadable not importable (means when we hit the downloaded vcf file then an message apperas Contact couldn't import) and i want to add lots of vcf file so it means i need to add php files as well.
Solution Which I know of that problem
So to achieve this we need to add that vcf file in that upload folder, which i am doing, then we can create a link which is should be like that https://domainname/uploade/vcffilename.vcf. But unfortunatelly it is not happing through this link the coded vcf file available.
Can you please guide me what the thing i am missing here so that my vcf link works properly and i can also provide the save option.
Regards
Vaibhav Narang

How to download files from a web folder in vb.net

I have a web folder e.g. "http://www.myhost.com/software/" if I open this address in IE it show me all files which this folder have.
I want to download all files but I don't want to hard-code name of files. I know I can get the files with webclient.DownloadFiles(#address,#filename). Is this possible to download all files or at least get the name of files from the web folder?
As a minimum you can download the same file IE displays (note that this file is provided by your web server -- there is not a standard) and parse the HTML for the files yourself, e.g. using webclient.DownloadFile("http://www.myhost.com/software/", #listfilename).
To access the files more "professionally", you'll need to see if the server also allows access via FTP or WebDAV because HTTP does not have a file "interface".

How do I store different documents in production environment?

I'm working on a "UPLOAD DOCUMENTS" functionality where different customer can upload the required documents and employer should be able to view all the uploaded documents by the customers. Currently in my local system I can upload the documents and it saves the uploaded file to "inetpub" folder. But in order to provide "upload documents" feature to production environment what should be the path? Where Can these documents be saved?
Any suggestion is appreciated.
The files need to be accessible to users for download somehow. This is tricky however, as it opens you up to security issues if they upload an executable file and then request it.
What I normally do is keep the file information (name, type, etc.) in a database. Then, I name the file on disk with a consistent naming structure, such as UPLOAD_ASSET_123456, with no file extension. I also keep them out of the web root.
Then, to retrieve to the file from the web end, have a script that accepts an ID, and then the script echos the file contents.

Get metadata of file present on dropbox before downloading in iphone

I am using Dropbox Api to display the list of files and folders present on it.. User can download file and view it..
I am downloading file every time .. but now i want to download file only if it is modified..
I can get date when file was updated in its metadata LastModifiedDate..
I have displayed all files in tableview and at the time of display all files i am getting metadata of all files in following function i have mentioned. And if after displaying all list any file get change I will not get latest file..I am getting the latest LastModifiedDate after file gets download..
Following method gets called when file download is complete:
- restClient:loadedMetadata:
Is there any way by which i can get it before it starts downloading? Is there any method of dropbox api which gives metadata of file before download?
If anybody wants further explanation then please let me know..
Thanks :)
Caching policies should be your friends, as far as the server is configured to support ETag.
wiki
short guide

Is it possible to prevent a file being renamed in the iTunes File Sharing?

I have an app which uses a sqlite db, saving it in the Documents directory.
Moreover it allows users to create a csv file from the db and send it via email. This .csv file is also saved in the Documents dir.
I would enable the iTunes File Sharing, so users can also save these files on pc/mac (maybe in the future my app could also read the files added by the users).
I read that users can remove, save, add and rename files via iTunes File Sharing, but I noticed that I didn't succeed in removing my app files via iTunes File Sharing, I can only save/add and rename them.
If the remove isn't possible, this is good for my app, but the user can still rename the .sqlite file.
Is there a way to prevent a file being renamed in the iTunes File Sharing?
You can hide the sqlite file from iTunes File sharing by starting the filename with a dot (.)
http://blog.saers.com/archives/2010/06/28/hiding-files-from-itunes-file-sharing/
alternatively see the Library directory here
How can I get a writable path on the iPhone?