I have a URL of a file and I want to download it from the internet. Before downloading, I want to make sure that the file I am going to download actually exists i.e, the URL is correct or the file has not been deleted by the owner. How am I supposed to do so in Qt?
Related
I am using postman(9.31.13) and I have got the following warning when I upload the file to send the body as a form-data.
"This file isn't in your working directory. Teammates you share this request with won't be able to use this file. To make collaboration easier you can set up your working directory in Settings." How can I solve it?
I have a problem with dotCMS. I have a site which is uploaded to the Internet and I want to export it to take care of this site locally on my computer. I've downloaded all data/assets from Maintenance -> Export dotCMS Content. I have a zip file with all content from this site. I managed and configured dotCMS locally on my computer. I have no idea how I can get access in dotCMS to my site from that zip file. In Maintenance menu I have no option to upload this site. I've read about folder dotCMS/starter.zip but I don't have anything like that. Can anyone tell step by step, how can I manage my site from zip file locally? Thx
Create a new database for dotCMS and replace the starter.zip with your downloaded .zip. Start dotCMS and it should import your site on initial startup. There are some caveats - the databases and versions should match from the server you've downloaded the .zip from.
So to add a couple things to Will's answer in case a few more details help:
The easiest way to do what Will advised may be to start with a new dotCMS distribution.
Make sure the versions of both dotCMS and the database in the new installation match those of the site you made the backup from.
Go through all the normal install steps (including setting up a database), but before you actually start dotCMS, replace the starter.zip file in the ROOT (/dotserver/tomcat-8.0.18/webapps/ROOT) with your own ZIP file (renaming your file to starter.zip).
Alternately, if you want to start with an existing install.
You still need to make sure the dotCMS and database versions match those of the site you backed up.
You still need to replace the starter.zip file with your backup ZIP file.
In addition, make sure you create a new DB (and update the context.xml file to point to it) before you start up dotCMS. If you don't do this, the starter.zip file (your backup) will not get read when dotCMS starts up.
In my application I have a functionality where user can upload his resume(of format .doc,.docx,.pdf). I'm using Ionic File Choosing plugin to choose the file and to upload I'm using Ionic File Transfer plugin. It is known that the file transfer plugin expects fileName filed in FileUploadOptions which will be the name of file to be uploaded with it's extension. In my case say resume.pdf/doc/docx.
For getting the file extension I'm passing the chosen file's path to Ionic File Path plugin which will resolve it to it's native path.
The whole process is working absolutely fine when the file is chosen from mobile's native file system.
But when the file is chosen from drive/cloud application the Ionic File Path plugin throws error cannot be resolved to native path.
As I'm not able to resolve file path to it's native path I'm not getting file's extension.
When I'm not aware of file's extension it is not possible to upload the file to my server. (if I keep filename field empty in FileUploadOptions, by default name.jpg will be taken which may not be the type of file that I'm trying to upload).
Please suggest how can I get the extension of file that is chosen from drive or how can I upload a file without default filename field in FileUploadOptions.
7.It's similar to this question ionic 2 How to download file from Google Drive and I-cloud as there is no proper answer for this question I'm reposting it with further explanation.
Finally I found solution for this problem. I have created a public github gist where I have explained the solution. The link for it is as below
https://gist.github.com/coolvasanth/d042a26deda75f5e390b42b87995f30d
After upgrading a website from opencart 1.5 to 2.3 I can't see the old uploaded images in file manager. My files are in /images/data/... while the file manager loads on /images/catalog/ and doesn't let me access any files beyond this folder. Is there a way to change the default location for file manager?
Luckily the older products still have the right links to their images, but since any new will have to be stored under /catalog directory, I will not be able to upload any new ones to already well made file structure.
admin/config.php will give you the directory of your image files, you can also change it to point at the correct location.
how can i access to a local file outsite wwwroot in coldfusion. I want to do a "href" link to access a file outside wwwroot directory. I tried many different solutions but any of them worked.
You can't link to a file outside of your web root, that helps keep your server safe. However, if your CF server has permission to access that other folder, you can write a CF page in your application that can present a file from that folder using CFCONTENT.
HOWEVER, do NOT try to access that file by passing a path to that file in the query string. That opens you up to other security issues. Create a table in the DB that maps those files to a File ID, then make sure that your logged in user has the correct role or privilege to access the file.
You'd create a file getFile.cfm and pass id=123 in the query string. Once you verify that your user can access the file in question, use this code to present it to the browser:
<cfheader name="Content-disposition" value="attachment;filename=#dafile#">
<cfcontent file="#dafile#" type="application/pdf">
Just make sure that the type attribute contains the correct mime-type for the file in question.
This example is from Ray Camden's post on the subject.