Uploading file to Galley gives "HTTP Error." (OJS3)

Hi @Sayomi_Olawumi,

The double-slashes aren’t a problem – every OS that I’m aware of will ignore these. However, the “Unable to move…” message is relevant and I still suspect it’s a permissions issue. Have you tried your test upload script, asking it to put files directly into /home/x~x~x~x~x~x~/public_html/ajmfiles//journals/1//articles/1201/submission/review/revision?

Be warned that your configuration may present a security risk: your files directory should not be inside your web root. This is noted on the installation form, in the README documentation, and elsewhere. Placing it in your web root will permit malicious users to potentially upload and execute code on your server. Change this immediately and double-check your site to ensure that no malicious code was uploaded/executed.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello,

Sorry for the late response, since the last time the upload works fine. Two things happened, our hosting account was terminated and we had to move to another host. I found that about the time the problem was occurring, the old server was suspending some services.

Bottom line, by the time the site and ojs installation was migrated, it the uploads worked out of the box.

I have two questions now.

  1. As per your recommendation on the files directory where would you recommend; one level above above publichtml?
  2. I am also having mail delivery issues, mails are currently not being delivered, what is likely reason for this?

Ola

Definitely put the files folder outside public_htm folder so that you can not access it via internet. Otherwise your installation is open for hacking.

So if you have myaccount/public_html/ with the OJS installation, then you should put your files directory to myaccount/files/.

Regarding mails, OJS uses the php mail function as default. I have heard that some service providers have that disabled. In that case you should configure smtp in config.inc.php. Of course there could be other reasons as well. https://github.com/pkp/ojs/blob/master/config.TEMPLATE.inc.php#L297

Thanks for this response,

I have updated the directory.

Is there a way I can test these 2? Confirm that the files folder has been updated and functional and that php mail function is working?

Ola

Just make sure that you can not access your files folder for example by accessing a url like http://mysitedomain.com/files/. You can of course do a test submission. Make sure that config.inc.php has the correct path for the files directory.

You could test the mail function for example with something like this: https://www.conetix.com.au/support/article/simple-php-mail-test

Php mail seems active php0 and the test script also delivers.

All looks ok now

Thanks for the assist

have you solved this problems?
i have same problmes like you