Нечетные полномочия на файле, измененном PHP move_uploaded_file ()

Две проблемы:

Не переводите объект, чтобы он вращался вокруг центра.


  
      

Ваши модели не центрированы в начале координат. Вам нужно будет импортировать в 3D-пакет, как Blender, и переориентировать его. Это пример вашего кода и модели с центром: https://glitch.com/edit/#!/utopian-walleye?path=public/index.html:32:19 [114 ]

8
задан hakre 1 July 2012 в 15:48
поделиться

2 ответа

Это, кажется, проблема с move_uploaded_file() функция:
http://us3.php.net/move_uploaded_file
Смотрите на комментарии ниже, примите во внимание комментарий Florian о копии ().

Скопировал бы (), решают проблему?:
http://us3.php.net/manual/en/function.copy.php

4
ответ дан 5 December 2019 в 15:28
поделиться

from the php page on move_uploaded_file (nb: this worked for me):

For those using PHP on Windows and IIS, you SHOULD set the "upload_tmp_dir" value in php.ini to some directory around where your websites directory is, create that directory, and then set the same permissions on it that you have set for your websites directory. Otherwise, when you upload a file and it goes into C:\WINDOWS\Temp, then you move it to your website directory, its permissions will NOT be set correctly. This will cause you problems if you then want to manipulate that file with something like ImageMagick's convert utility.

7
ответ дан 5 December 2019 в 15:28
поделиться