Image upload via Iphone

Hello again everyone. I wrote small program for a friend to upload videos and images of the Workouts everyday in our gym, on his website (http://crossfitsumter.com/). He has no problems with any of it except the images. Whenever he attempts to upload or modify and image from his Iphone, it will go through like it is posting the new or updated image, but it will not actually go through. In otherwords, when he hits ‘submit’ it just shows a small red X on teh website where the image should be. Also, when he eitehr updates or modifies an image, it makes them All turn to red X’s even though he onlu modified one. From a PC, it works fine. Anyone see a problem outright with the code below?

[php]<?php
include ‘core/init.php’;
protect_page();
include ‘includes/overall/overallheader.php’;
include(‘connection.php’);
?>

<?php include 'includes/admin_menu.php'; ?> <?php $query="SELECT * FROM `wod` ORDER BY `id` DESC"; $resource=mysql_query($query); ?>

Add New WOD

Month:

Day:

Year:

Name:

WOD 1:

WOD 2:

WOD 3:

WOD 4:

WOD 5:

WOD 6:

Photo:
WOD Comment:


Current WOD List

<?php while($result=mysql_fetch_array($resource)) { echo ""; } ?>
Month Day Year Name
".$result['month']." ".$result['day']." ".$result['year']." ".$result['name']." ".$result['imagelocation']."

<?php echo $_html; ?> <?php include 'includes/overall/overallfooter.php'; ?>[/php]

It’s hard to tell this is something that simply needs to be debugged. I would say test using Safari on a desktop and see if you have the same problem as iphone.

Okay. I downloaded Safari on my laptop and the image upload and image modify work fine. So I can only assume that maybe the Iphone does not allow file uploads Natively maybe?

Hello everyone. I am sorry to bring this topic back to life but I have searched high and low and cannot figure this out. The uploads work fine on all browsers on a PC but will not let you upload new images from the iphone. Any suggestions?

Did you already debug if the image is actually uploaded?
The iPhone restricts access to the Photos and Contacts by default (dunno if you can allow that from a website or only from inside a native app).

Sponsor our Newsletter | Privacy Policy | Terms of Service