My website says page not found after uploading of CSV file - codeigniter

I am using codeigniter framework. I am uploading CSV file which is having a lot of data nearly 20,000 rows. If I am upload lessthan 1000 rows then it is uploading successfully and redirect to the view page. If i am uploading 20,000 rows then it is uploading all the data and lastly it says page not found and not redirect to view page. I don't know what is the problem. Please help me.
It gives the error in console as
Mixed Content: The page at 'https:localhost/Client/upload_location' was loaded over HTTPS, but requested an insecure script 'http://www.googleadservices.com/pagead/conversion_async.js'. This request has been blocked; the content must be served over HTTPS.
Is this effect my website?
I am just uploaded file and fetch records from csv file and inserting them into table.
$insert_array=array(
"location_name" =>$data[0]
);
$this->db->insert('locations', $insert_batch);

Related

"404" error while uploading large file (>150mb) in laravel 5.7 on godaddy server

I'm facing one problem during upload of large file (>150mb) through post request in laravel 5.7 on godaddy server.
Small files (<150mb) I can upload but large files i can't while i can upload large files in localhost. On server when I'm trying to upload large file during form submission the page is redirecting to the route path and displaying "404" error.
I have also updated the values of upload_max_filesize, post_max_size, memory_limit upto 2G on server but its not working for me. I have attached the screenshot of error:
 

Files and HTTPS on Parse

I'm hosting files on Parse and was wondering how to get an HTTPS link for uploaded files/images, as opposed to HTTP. I'm creating a web app and without all the assets being sent over SSL, it has the potential to throw errors and not appear on certain browsers.
If your uploaded file stored in any class and the column name is
profilePic then you can use
profilePic._url
for getting https link or url of it..

Laravel Image error

Hello can anyone help me with this problem in laravel?
In local server when I upload image it is working but in live server it is not working because of this problem:
[2015-05-22 10:38:23] production.ERROR: exception 'Intervention\Image\Exception\NotWritableException'
with message
Can't write image data to path (/var/www/vhosts/domain-name/httpdocs/mainsource/img/courses/1432291103.jpg)
and if i create a folder inside mainsource img/courses image will be saved but doesn't show in the page.
Also i have the same folder img/courses in public from which also my courses page reads images and shows images.

Preventing file upload by submitting a form which has file tag

My client has millions of users driver website. I had to implement a custom file upload using AJAX/jQuery.
The file upload field is just needed to create a clickable and drop-downable file upload mechanism. Everything is working fine except when I submit the form it uploads the file again which has already been uploaded using ajax.
How can I prevent this uploading?
Move the file input to outside the form or replace the file input with a new one when you upload the file.

CKFinder connector.php error 500

I have a website built with CodeIgniter which, for the admin area, is using CKEditor and CKFinder to write posts for the news section.
The CKFinder image uploader was working with no problems, but two days ago I had to move the files on another server. Till then I get the 500 error when trying to upload images.
Behavior:
I open the Upload image modal window. I browse and select an image and when I click the Send to server button I get a 404 error message (the custom 404 page of CodeIgniter). In firebug it shows that there is a 500 internal server error.
File path is plugins/ckfinder/core/connector/php/connector.php and it exists on the server.
I managed to find out the problem was a file permission issue. The folder in which I have to save the images had 777 permission (and for the old server was the good one) and it needed 755 permissions.
To debug this issue i have to add :
ini_set('display_errors', 1);
error_reporting(E_ALL);
in the followings files: config.php and ckfinder.php in the root of the directory ckfinder.

Resources