File uploads don't work
Moderator: mkoch227
File uploads don't work
Hi all;
When I upload a file get this error..
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access /home/username/public_html/desk/attachments/76AG72W2Z9_76a000bc361effbccdf5818bc9f8b377.doc in /membri/cata1do/desk/inc/attachments.inc.php on line 70
is this a server problem?
cat
When I upload a file get this error..
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to access /home/username/public_html/desk/attachments/76AG72W2Z9_76a000bc361effbccdf5818bc9f8b377.doc in /membri/cata1do/desk/inc/attachments.inc.php on line 70
is this a server problem?
cat
The attachments folder probably isn't accessible by PHP scripts.
If you're on a Linux server double-check the CHMOD settings, if on windows see
viewtopic.php?t=1406
or contact your host to set it to correct (write) permissions.
If you're on a Linux server double-check the CHMOD settings, if on windows see
viewtopic.php?t=1406
or contact your host to set it to correct (write) permissions.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
file upload still dont work
hello
1st thanks for this wonderfull script, im usind HESK2.0. The setup was really easy. Now im on testing around all the settings. I tryed to upload an 51KB JPG with an replyed ticket.
the file permissions are:
attachments = 777
hesk_settings.inc.php = 666
The Settings shows me this:
/hesk_settings.inc.php= Exists, Writable
/attachments= Exists, Writable
eny idea?
btw: when there is once an attached file its not posssible to delete the desierd path.
(I tested all with FF3+ and IE7+)
urs
1st thanks for this wonderfull script, im usind HESK2.0. The setup was really easy. Now im on testing around all the settings. I tryed to upload an 51KB JPG with an replyed ticket.
the file permissions are:
attachments = 777
hesk_settings.inc.php = 666
The Settings shows me this:
/hesk_settings.inc.php= Exists, Writable
/attachments= Exists, Writable
eny idea?
btw: when there is once an attached file its not posssible to delete the desierd path.
(I tested all with FF3+ and IE7+)
urs
Upload the phpinfo.php file to your server and post a link here (you will get the file here viewtopic.php?t=138 ).
Also try setting Deug mode to ON in the settings and see if you get a better error message with more info. You should also post a link to your script here so we can test it from here.
Also try setting Deug mode to ON in the settings and see if you get a better error message with more info. You should also post a link to your script here so we can test it from here.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
here the links:
http://helpdesk.jimrose.ch/phpinfo.php
http://helpdesk.jimrose.ch/session_test.php
here some pics:
http://www.screencast.com/t/ZfhkeIz13h
(unfourgenatly the debug mode does not show more info in the errormessage.)
and here my helpdesk ....hmmm...easy to find out..right?
http://helpdesk.jimrose.ch
thanks 4 yout help
http://helpdesk.jimrose.ch/phpinfo.php
http://helpdesk.jimrose.ch/session_test.php
here some pics:
http://www.screencast.com/t/ZfhkeIz13h
(unfourgenatly the debug mode does not show more info in the errormessage.)
and here my helpdesk ....hmmm...easy to find out..right?
http://helpdesk.jimrose.ch
thanks 4 yout help
-
- Posts: 16
- Joined: Fri Mar 06, 2009 4:48 pm
jepp, this path comes from the provider. I did not change enything there. After the Hesk Setup was compleate, this was the gifen path.
The HESK Help means this:
System/root path
Full server path ("root path", "system path") to your Hesk folder. Hesk will try to find the correct path automatically, if not consult your hosting company for the correct path.
here my System/root path
http://www.screencast.com/t/LfX6nbdO1ut
EDIT:
Ohh..sorry, filesize limit i changed to 2048kb.
The HESK Help means this:
System/root path
Full server path ("root path", "system path") to your Hesk folder. Hesk will try to find the correct path automatically, if not consult your hosting company for the correct path.
here my System/root path
http://www.screencast.com/t/LfX6nbdO1ut
EDIT:
Ohh..sorry, filesize limit i changed to 2048kb.
-
- Posts: 16
- Joined: Fri Mar 06, 2009 4:48 pm
Hmm, based on your phpinfo, the doc root you have set might be incorrect.
According to your phpinfo, the root of your hesk folder is:
"/var/www/vhosts/jimrose.ch/subdomains/helpdesk/httpdocs"
and your hesk is set to use "/home/username/public_html/hest" as the root.
I know in my setup, my doc root is the same as what is reported by phpinfo
My 2 bits
According to your phpinfo, the root of your hesk folder is:
"/var/www/vhosts/jimrose.ch/subdomains/helpdesk/httpdocs"
and your hesk is set to use "/home/username/public_html/hest" as the root.
I know in my setup, my doc root is the same as what is reported by phpinfo
My 2 bits
[color=red]Caution:[/color] YankeePicker may appear smarter than he really is. Advice not to be taken internally. Ask your Doctor if YankeePicker is right for you.
ok, on my local xampp this is now working for the "root path", "system path" filed:
The file was upoaded and the hesk-success message was shown after
successfull submission
but..what can i enter for for the "root path", "system path" on my provider-hosted hesk testsystem?
hmm...i try more
Code: Select all
C:\xampp\htdocs\hesk20\
successfull submission
but..what can i enter for for the "root path", "system path" on my provider-hosted hesk testsystem?
hmm...i try more
PROBLEM SOLVED
i used the path in the phpinfo.php filed "DOCUMENT_ROOT"
This is working now perfectly. For some reason the hesk-install script did not get the right path. Probably there is something hardcoded?
thanks for your help folks, especially to YankeePicker for your time.
I buy you a beer one time....
uscher
i used the path in the phpinfo.php filed "DOCUMENT_ROOT"
Code: Select all
/var/www/vhosts/domain.com/subdomains/helpdesk/httpdocs
thanks for your help folks, especially to YankeePicker for your time.
I buy you a beer one time....

uscher
-
- Posts: 16
- Joined: Fri Mar 06, 2009 4:48 pm