⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

uploading photo problem



Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 10:30 AM

Hi there,
I have this code

$crud->set_field_upload('photo','../assets/uploads/slider');


and the upload done in local

[img]http://im18.gulfup.com/y87H1.jpg[/img]

but online I have an error

[img]http://im18.gulfup.com/4VzX2.jpg[/img]

althoug I give the folder prmetion 0777
and the photo uploaded into the folder
what is the problem?

victor
  • profile picture
  • Member

Posted 27 November 2012 - 12:00 PM

show your directory structure.

Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 14:24 PM


http://myDomain.net/myAdminFolder/../assets/uploads/slider/

victor
  • profile picture
  • Member

Posted 27 November 2012 - 15:12 PM

show full directory structure.
for example:
www/
index.php
application/
system/
assest/

Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 15:19 PM

public html/assets/uploads/slider

the photo is already uploaded (when I open the folder I found it)
but this message is appear

victor
  • profile picture
  • Member

Posted 27 November 2012 - 15:22 PM

where is system directory and index.php?

system/
application/
public_html/
index.php
uploads/
?

Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 15:29 PM

[img]http://im21.gulfup.com/iuNi1.jpg[/img]

my code in
applications/controllers

and the folder in assets folder

victor
  • profile picture
  • Member

Posted 27 November 2012 - 15:34 PM

These files are in public_html?

victor
  • profile picture
  • Member

Posted 27 November 2012 - 15:34 PM

$crud->set_field_upload('file_url','assets/uploads/files');

Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 15:36 PM

sorry
my code in
myadmin/applications/controllers

and the folder in assets folder

victor
  • profile picture
  • Member

Posted 27 November 2012 - 15:36 PM

what error show firebug?

Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 15:38 PM

what do you mean?

victor
  • profile picture
  • Member

Posted 27 November 2012 - 16:37 PM

what error do you have when you test it?

Mohammed Zayan
  • profile picture
  • Member

Posted 27 November 2012 - 16:41 PM

in localhost ther is no error
online I have this
[img]http://im18.gulfup.com/4VzX2.jpg[/img]

but I open the folder and I found the photo

victor
  • profile picture
  • Member

Posted 27 November 2012 - 16:55 PM

this message generated by Javascript functions. But you could to find cause of the error.
https://getfirebug.com/

Mohammed Zayan
  • profile picture
  • Member

Posted 29 November 2012 - 10:47 AM

The problem solved by changing the encoding of
assets/grocery_crud/languages/arabic.php
to utf-8 without BOM