Mobile images from iPhone not displaying - php

I have some photos on my iPhone I would like to upload to my website. However, when I try to upload it fails. Some of the errors I received were File name cannot be empty and File is not an image. The thing is when I download a image from the web it works just fine. What am I not understanding here? I am using PHP to upload files to the folder. The example I followed was on W3schools Thanks to all that help.

Related

PHP Image Upload - Locked Photos - FTP Error

I've been creating a website in the same way that I usually so, where I add an article + image using HTML & PHP. The difference is that when I upload the photo, even though it displays on the web page, my folder shows an Icon instead of the image (See Below):
As the photos show on the webpage I didn't think much of it, until I tried to upload the website, where I kept getting an FTP upload error on the images. Then when loading the website, I found that none of the images were there.
I'm not sure what the problem is, but when I tried to open one of the photos in Fireworks it says, "Could not open the file. File is locked".
Does anyone know what the probelm is? I'm using the same upload method used previously.

move_uploaded_file in php is not working in mobile browser When pic taken from camera, but it is working with desktop browser

Im using the below code to move a uploaded file into a location in server.
if( $_FILES)
move_uploaded_file($_FILES['newfile']['tmp_name'][0], "uploads".DIRECTORY_SEPARATOR."jersey".DIRECTORY_SEPARATOR.$jersey_id.DIRECTORY_SEPARATOR."jersey_logo_".$_FILES['newfile']['name'][0]);
The above code works fine, when i use browser in my pc. But the same fails when using mobile browser's camera and files selected from camera folder and the same works if files are selected from other folders.
The $_FILES array is follows
what will be the reason?

CSS and images does't work on host

on my computer the website works fine.
when I upload the website the the server the images and css does't work.
I've tried to solve this problem myself but failed.
I had some problem. Do not upload site with file zila or total commander they can loose some files.
Upload site directly using c-panel, zip-it and upload.
If this dont work call administrator

Does ssl block imgur from getting image dimensions?

I'm using php GD library to create an png file, I'm saving it to my server.
URL for the image is
https://server.com/signature/123.png
My problem is I can't upload that image to imgur, I get this error
This issue also occurs on other image uploading sites / forums
However if I decide to download the image to my desktop and upload it to imgur it seems to work. Anyone has an idea on why this is happening?

Thumbnail is not generated while uploading a video which is downloaded from the same server

I am using drupal 7 video module and ffmpeg together to upload video on my site.
My problem:
Upload a video, everything works fine, thumbnail is generated and video is uploaded successfully
Now download the above uploaded video.
Now Try to upload the same video, on same drupal site.
Thumbnail is not generating and also I am not able to play the newly uploaded video.
In all other cases video upload is working fine, I am able to upload same video again and again with no fuss,but when I try to upload the downloaded video , everything goes wrong even if I change the file name after downloading the video and uploading again.
Please let me know if I am not clear, will try to explain more.
I would suggest you take a look at the ffmpeg log/console output when you try to re-upload a previously downloaded file. There could be something wrong while the file is re-processed.
If you need more help please provide the output of the ffmpeg console of the video and a sample file that is not working with encoding/processing settings.

Categories