Questions tagged as 'download'

1
answer

Problem with downloading PDF file with laravel

I have a system for downloading PDF files, what is happening and what I try to download, and it simply does not download. I have seen in the chromo inspector and no error. Controller class DownloadController extends Controller{ publi...
asked by 29.10.2017 / 23:37
0
answers

Force download with Header does not work in PHP [closed]

I use this code to force download, it works fine when I squeeze it in XAMPP, but it returns corrupted file when I run on the ubunto, what can I do to fix it? header('Content-Length: ' . filesizecurl($file_path)); header('Conten...
asked by 02.04.2017 / 04:02
0
answers

Download .xls file in Spring with POST

Galera, To download a file in Spring, I'm using the GET method. @RequestMapping(value = "/exportar/{tipo}", method = RequestMethod.GET) @ResponseBody public void exportar(HttpServletResponse response,@PathVariable TipoEnum tipo) throws IOEx...
asked by 24.04.2017 / 14:58
0
answers

File download closing session in PHP

I have a PHP file download system with login and session expiration in 30 minutes, at first I thought it was some logic error, but the system user only unexpectedly logs off when downloading several files in a short time lapse. Already if user d...
asked by 05.10.2016 / 15:28
1
answer

ImageView displays the image rotated by 90 degrees

When I upload a photo to the server and I'm going to display it using Picasso.with(getApplicationContext()).load(Caminhofoto).into(fotoalerta); If the photo was taken with the mobile phone vertically, it is loaded horizontally and could dis...
asked by 17.03.2016 / 15:57
1
answer

Download PDF Files in ReactJs

I have a small problem downloading files into PDF I have an API that returns a array of bytes with type : "application/pdf" , if I call directly in the browser my route. Ex: localhost/api/download/pdf/{id} PDF download...
asked by 31.05.2017 / 20:57
3
answers

Download site with php [closed]

Good evening, I'm learning to program, so I'm trying to make a copy of a site with login system, password, and several users, I'm trying to download because it's one of the ways I use to learn with me, I watch the code, seeing its functionality...
asked by 17.08.2017 / 04:48
2
answers

Force download with php file comes corrupted

Hello, the code even comes to download, the problem is that it comes corrupted, and I have no idea why this happens. The download is called site.com/download/key .htaccess: RewriteEngine On RewriteBase / RewriteCond %{SCRIPT_FILEN...
asked by 24.03.2017 / 13:17
1
answer

Download image in link with PHP parentheses

So I'm trying to download an image through a url ... I already identified the problem example: <?php $imgurl = 'http://ia.media-imdb.com/images/M/MV5BNTA2MTk3NzI5Ml5BMl5BanBnXkFtZTgwNzU2MzYyNzE@._V1_SX300.jpg'; if( !@copy( $imgurl, './t...
asked by 16.02.2017 / 17:01
2
answers

Download multiple images at once from a site in php

Next, there is a site where I need to download several images, I can access the image as follows: url.com/get_img.php?user=VARIÁVEL where variable is replaced by an integer and it returns an image in PNG . I need help finding ou...
asked by 18.02.2018 / 02:29