Fout bij uploaden

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Jacco Engel

Jacco Engel

04/09/2008 09:54:00
Quote Anchor link
Dames en Heren,

Mijn uploadscript werkt niet goed en na uitvoerig testen heb ik besloten er eens een topic aan te weiden.

Zo ziet mijn $_FILES array er uit :
Code (php)
PHP script in nieuw venster Selecteer het PHP script
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Array
(
    [image] => Array
        (
            [name] => Array
                (
                    [0] => Waterlelies.jpg
                    [1] => Zonsondergang.jpg
                    [2] => Winter.jpg
                )

            [type] => Array
                (
                    [0] =>
                    [1] =>
                    [2] =>
                )

            [tmp_name] => Array
                (
                    [0] =>
                    [1] =>
                    [2] =>
                )

            [error] => Array
                (
                    [0] => 6
                    [1] => 6
                    [2] => 6
                )

            [size] => Array
                (
                    [0] => 0
                    [1] => 0
                    [2] => 0
                )

        )

)


Het gaat om een formulier waarbij je een variabel aantal plaatjes kan uploaden. Omschrijven of uitgebreid aanpassen in geen optie. Quickfixes en niet zo nette oplossingen eventueel wel
 
PHP hulp

PHP hulp

28/03/2024 10:43:26
 
- SanThe -

- SanThe -

04/09/2008 10:09:00
Quote Anchor link
php.bet is je vriend.

Van php.net
Je hebt geen 'tmp' map ingesteld.

Error Messages Explained

Since PHP 4.2.0, PHP returns an appropriate error code along with the file array. The error code can be found in the error segment of the file array that is created during the file upload by PHP. In other words, the error might be found in $_FILES['userfile']['error'].

UPLOAD_ERR_OK

Value: 0; There is no error, the file uploaded with success.
UPLOAD_ERR_INI_SIZE

Value: 1; The uploaded file exceeds the upload_max_filesize directive in php.ini.
UPLOAD_ERR_FORM_SIZE

Value: 2; The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form.
UPLOAD_ERR_PARTIAL

Value: 3; The uploaded file was only partially uploaded.
UPLOAD_ERR_NO_FILE

Value: 4; No file was uploaded.
UPLOAD_ERR_NO_TMP_DIR

Value: 6; Missing a temporary folder. Introduced in PHP 4.3.10 and PHP 5.0.3.
UPLOAD_ERR_CANT_WRITE

Value: 7; Failed to write file to disk. Introduced in PHP 5.1.0.
UPLOAD_ERR_EXTENSION

Value: 8; File upload stopped by extension. Introduced in PHP 5.2.0.

Note: These became PHP constants in PHP 4.3.0.
 
Jacco Engel

Jacco Engel

04/09/2008 10:16:00
Quote Anchor link
Heb het niet zo snel kunnen vinden heb je directe link voor me? (srry nogal druk op werk :P)

En heb je toevallig ook een oplossing? Script heeft namelijk actijd gewerkt voor zover bij mij bekend
Gewijzigd op 01/01/1970 01:00:00 door Jacco Engel
 
- SanThe -

- SanThe -

04/09/2008 11:48:00
 
Jacco Engel

Jacco Engel

04/09/2008 11:49:00
Quote Anchor link
Is opgelost, server admin had gisteren iets verandert en ff niet aan de tmp dir gedacht
 



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.