Welcome Guest, Not a member yet? Register   Sign In
Cant get photo to upload.
#12

(10-03-2020, 10:20 AM)InsiteFX Wrote: What is the name of the controller that the function is in?

PHP Code:
<?php echo form_open_multipart('controllerName/drinkadvert'); ?>

Change controllerName to the name of your controller that the drinkadvert is in.

Ive found what I think was an error. The working page that has these functions have the following variable with a different name;

PHP Code:
$drinkphoto 'mem/'.$lcuser.'/adverts/'.$drink/$img['file_name'];
$drinkpic 'mem/'.$lcuser.'/adverts/'.$drink/$img['file_name'];

if(isset(
$_FILES['drinkphoto']['name']) && $_FILES['drinkphoto']['name']!="")
if(isset(
$_FILES['drinkpic']['name']) && $_FILES['drinkpic']['name']!="")

$mime get_mime_by_extension($_FILES['drinkphoto']['name']);
$mime get_mime_by_extension($_FILES['drinkpic']['name']); 

But that did not solve my problem. However, it may lead to a resolution.
Reply


Messages In This Thread
Cant get photo to upload. - by christaliise - 10-02-2020, 08:08 AM
RE: Cant get photo to upload. - by InsiteFX - 10-02-2020, 06:56 PM
RE: Cant get photo to upload. - by christaliise - 10-03-2020, 01:27 AM
RE: Cant get photo to upload. - by InsiteFX - 10-03-2020, 02:40 AM
RE: Cant get photo to upload. - by christaliise - 10-03-2020, 04:22 AM
RE: Cant get photo to upload. - by christaliise - 10-03-2020, 06:42 AM
RE: Cant get photo to upload. - by InsiteFX - 10-03-2020, 07:20 AM
RE: Cant get photo to upload. - by christaliise - 10-03-2020, 07:56 AM
RE: Cant get photo to upload. - by InsiteFX - 10-03-2020, 10:20 AM
RE: Cant get photo to upload. - by christaliise - 10-03-2020, 04:49 PM
RE: Cant get photo to upload. - by christaliise - 10-04-2020, 01:34 AM
RE: Cant get photo to upload. - by InsiteFX - 10-03-2020, 05:25 PM
RE: Cant get photo to upload. - by coder987 - 10-12-2020, 01:40 AM
RE: Cant get photo to upload. - by christaliise - 11-16-2020, 10:00 AM
RE: Cant get photo to upload. - by christaliise - 12-02-2020, 10:01 AM



Theme © iAndrew 2016 - Forum software by © MyBB