Image Upload

Installation Problems And Solutions

Image Upload

Postby mcmonty » Mon Jan 30, 2012 6:53 pm

Hello,

I've successfully setup the Editor. However, when I attempt to do file upload..nothing happens. The database doesn't receive the file name nor does the file get uploaded. After selecting the image and hitting update, the browser returns to the main table view.

Code: Select all
$tableColumns['Image'] = array('display_text' => 'Image', 'hidden' => true, 'perms' => 'EVCAXTQSFHO',
         'file_upload' => array('upload_fun' => array(&$this,'handleUpload')),
         'table_fun' => array(&$this,'formatImage'), 'view_fun' => array(&$this,'formatImage')
      );



Please advise.
mcmonty
 
Posts: 5
Joined: Mon Jan 30, 2012 6:50 pm

Re: Image Upload

Postby admin » Mon Jan 30, 2012 10:56 pm

Are you using the paid version?
admin
Site Admin
 
Posts: 1502
Joined: Fri Jul 11, 2008 1:34 am

Re: Image Upload

Postby mcmonty » Tue Jan 31, 2012 3:03 pm

Yes.
mcmonty
 
Posts: 5
Joined: Mon Jan 30, 2012 6:50 pm

Re: Image Upload

Postby mcmonty » Tue Jan 31, 2012 3:04 pm

I purchased/ downloaded in February of 2011.
mcmonty
 
Posts: 5
Joined: Mon Jan 30, 2012 6:50 pm

Re: Image Upload

Postby admin » Wed Feb 01, 2012 2:16 am

Have you checked your apache error logs for php errors. When working with ajax file uploads, errors will not usually be displayed to the browser because it posts to a hidden iframe. So try looking at the logs and see if it has any errors.
admin
Site Admin
 
Posts: 1502
Joined: Fri Jul 11, 2008 1:34 am

Re: Image Upload

Postby mcmonty » Tue Feb 07, 2012 7:23 pm

Here are the errors...
Code: Select all

PHP Warning:  unlink(/uploads/image.jpg) [<a href='function.unlink'>function.unlink</a>]: No such file or directory in /var/www/vhosts/****/httpdocs/volunteer/index.php on line 111, referer: http://www.****/volunteer/index.php

PHP Warning:  move_uploaded_file(/uploads/image.jpg) [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: failed to open stream: No such file or directory in /var/www/vhosts/****/httpdocs/volunteer/index.php on line 114, referer: http://www.****/volunteer/index.php

PHP Warning:  move_uploaded_file() [<a href='function.move-uploaded-file'>function.move-uploaded-file</a>]: Unable to move '/tmp/phpjgt63V' to '/uploads/image.jpg' in /var/www/vhosts/****/httpdocs/volunteer/index.php on line 114, referer: http://www.****/volunteer/index.php



Thoughts?
mcmonty
 
Posts: 5
Joined: Mon Jan 30, 2012 6:50 pm

Re: Image Upload

Postby mcmonty » Thu Feb 09, 2012 4:00 pm

Thoughts?
mcmonty
 
Posts: 5
Joined: Mon Jan 30, 2012 6:50 pm

Re: Image Upload

Postby admin » Thu Feb 09, 2012 5:05 pm

Make sure the apache user has write permission on the uploads folder.
admin
Site Admin
 
Posts: 1502
Joined: Fri Jul 11, 2008 1:34 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron