Server upload
Beste helpers
Ik heb deze functie geschreven voor uploaden van foto (jpg) bestanden. maar lokaal doet ie het perfect. helaas op de server werkte ie niet. het enige wat is terug krijg is imagejpeg error.
Ik heb deze functie geschreven voor uploaden van foto (jpg) bestanden. maar lokaal doet ie het perfect. helaas op de server werkte ie niet. het enige wat is terug krijg is imagejpeg error.
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
function movefoto($fotoID , $productId)
{
$this->renamefile($fotoID , $productId);
if(file_exists($this->target.$this->newName))
{
echo "Hernoem uw bestand aub";
}else
{
if(in_array($this->type,$this->allowedfile))
{
$destinationLocation = "".$this->target."".$this->newName."";
$sourceFile = $this->tmpnaam;
$size = getimagesize($sourceFile);
$newWidth = 600;
{
$this->renamefile($fotoID , $productId);
if(file_exists($this->target.$this->newName))
{
echo "Hernoem uw bestand aub";
}else
{
if(in_array($this->type,$this->allowedfile))
{
$destinationLocation = "".$this->target."".$this->newName."";
$sourceFile = $this->tmpnaam;
$size = getimagesize($sourceFile);
$newWidth = 600;




