Welcome Guest, Not a member yet? Register   Sign In
Upload de arquivos na locaweb
#11

[eluser]cebalzer[/eluser]
DEBUG - 2012-04-17 08:46:24 --> Final output sent to browser
DEBUG - 2012-04-17 08:46:24 --> Total execution time: 0.1664
DEBUG - 2012-04-17 08:46:29 --> Config Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Hooks Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Utf8 Class Initialized
DEBUG - 2012-04-17 08:46:29 --> UTF-8 Support Enabled
DEBUG - 2012-04-17 08:46:29 --> URI Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Router Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Output Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Security Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Input Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Global POST and COOKIE data sanitized
DEBUG - 2012-04-17 08:46:29 --> Language Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Loader Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Helper loaded: url_helper
DEBUG - 2012-04-17 08:46:29 --> Helper loaded: file_helper
DEBUG - 2012-04-17 08:46:29 --> Database Driver Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Session Class Initialized
DEBUG - 2012-04-17 08:46:29 --> Helper loaded: string_helper
DEBUG - 2012-04-17 08:46:30 --> Session routines successfully run
DEBUG - 2012-04-17 08:46:30 --> Helper loaded: form_helper
DEBUG - 2012-04-17 08:46:30 --> Form Validation Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Email Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Upload Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Controller Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Model Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Model Class Initialized
DEBUG - 2012-04-17 08:46:30 --> File loaded: application/views/header.php
DEBUG - 2012-04-17 08:46:30 --> File loaded: application/views/admin/admin_view.php
DEBUG - 2012-04-17 08:46:30 --> File loaded: application/views/footer.php
DEBUG - 2012-04-17 08:46:30 --> Final output sent to browser
DEBUG - 2012-04-17 08:46:30 --> Total execution time: 0.1738
DEBUG - 2012-04-17 08:46:30 --> Config Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Hooks Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Utf8 Class Initialized
DEBUG - 2012-04-17 08:46:30 --> UTF-8 Support Enabled
DEBUG - 2012-04-17 08:46:30 --> URI Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Router Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Output Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Security Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Input Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Global POST and COOKIE data sanitized
DEBUG - 2012-04-17 08:46:30 --> Language Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Loader Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Helper loaded: url_helper
DEBUG - 2012-04-17 08:46:30 --> Helper loaded: file_helper
DEBUG - 2012-04-17 08:46:30 --> Database Driver Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Session Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Helper loaded: string_helper
DEBUG - 2012-04-17 08:46:30 --> Session routines successfully run
DEBUG - 2012-04-17 08:46:30 --> Helper loaded: form_helper
DEBUG - 2012-04-17 08:46:30 --> Form Validation Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Email Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Upload Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Controller Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Model Class Initialized
DEBUG - 2012-04-17 08:46:30 --> Model Class Initialized
DEBUG - 2012-04-17 08:46:30 --> File loaded: application/views/header.php
DEBUG - 2012-04-17 08:46:30 --> File loaded: application/views/admin/admin_view.php
DEBUG - 2012-04-17 08:46:30 --> File loaded: application/views/footer.php
DEBUG - 2012-04-17 08:46:30 --> Final output sent to browser
DEBUG - 2012-04-17 08:46:30 --> Total execution time: 0.1575
DEBUG - 2012-04-17 08:46:31 --> Config Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Hooks Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Utf8 Class Initialized
DEBUG - 2012-04-17 08:46:31 --> UTF-8 Support Enabled
DEBUG - 2012-04-17 08:46:31 --> URI Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Router Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Output Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Security Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Input Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Global POST and COOKIE data sanitized
DEBUG - 2012-04-17 08:46:31 --> Language Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Loader Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Helper loaded: url_helper
DEBUG - 2012-04-17 08:46:31 --> Helper loaded: file_helper
DEBUG - 2012-04-17 08:46:31 --> Database Driver Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Session Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Helper loaded: string_helper
DEBUG - 2012-04-17 08:46:31 --> Session routines successfully run
DEBUG - 2012-04-17 08:46:31 --> Helper loaded: form_helper
DEBUG - 2012-04-17 08:46:31 --> Form Validation Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Email Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Upload Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Controller Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Model Class Initialized
DEBUG - 2012-04-17 08:46:31 --> Model Class Initialized
#12

[eluser]cebalzer[/eluser]
DEBUG - 2012-04-17 08:46:47 --> Final output sent to browser
DEBUG - 2012-04-17 08:46:47 --> Total execution time: 0.1943
DEBUG - 2012-04-17 08:46:47 --> Config Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Hooks Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Utf8 Class Initialized
DEBUG - 2012-04-17 08:46:47 --> UTF-8 Support Enabled
DEBUG - 2012-04-17 08:46:47 --> URI Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Router Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Config Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Hooks Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Utf8 Class Initialized
DEBUG - 2012-04-17 08:46:47 --> UTF-8 Support Enabled
DEBUG - 2012-04-17 08:46:47 --> URI Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Router Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Output Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Security Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Input Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Global POST and COOKIE data sanitized
DEBUG - 2012-04-17 08:46:47 --> Language Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Loader Class Initialized
DEBUG - 2012-04-17 08:46:47 --> Helper loaded: url_helper
DEBUG - 2012-04-17 08:46:47 --> Helper loaded: file_helper
DEBUG - 2012-04-17 08:46:47 --> Database Driver Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Session Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Helper loaded: string_helper
DEBUG - 2012-04-17 08:46:48 --> Session routines successfully run
DEBUG - 2012-04-17 08:46:48 --> Helper loaded: form_helper
DEBUG - 2012-04-17 08:46:48 --> Form Validation Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Email Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Upload Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Controller Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Model Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Model Class Initialized
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: js /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/header.php 33
DEBUG - 2012-04-17 08:46:48 --> File loaded: application/views/header.php
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 34
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 34
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 42
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 42
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 46
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 46
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 51
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 51
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 58
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 58
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 63
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 63
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Undefined variable: listaP /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 88
ERROR - 2012-04-17 08:46:48 --> Severity: Notice --> Trying to get property of non-object /home/storage/c/1c/4a/MEULOGINFTP/public_html/application/views/produto/produto_form.php 88
DEBUG - 2012-04-17 08:46:48 --> File loaded: application/views/produto/produto_form.php
DEBUG - 2012-04-17 08:46:48 --> File loaded: application/views/footer.php
DEBUG - 2012-04-17 08:46:48 --> Final output sent to browser
DEBUG - 2012-04-17 08:46:48 --> Total execution time: 0.2017
DEBUG - 2012-04-17 08:46:48 --> Config Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Hooks Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Utf8 Class Initialized
DEBUG - 2012-04-17 08:46:48 --> UTF-8 Support Enabled
DEBUG - 2012-04-17 08:46:48 --> URI Class Initialized
DEBUG - 2012-04-17 08:46:48 --> Router Class Initialized
#13

[eluser]cebalzer[/eluser]
Desculpe mas nao foi possivel anexar o arquivo de 4kb.
#14

[eluser]mestresan[/eluser]
tem q ver pq está dando esses erros no seu form.

Mas, o seu if do upload, nao retorna nenhum erro ?
#15

[eluser]mestresan[/eluser]
outra coisa....que vi agora... eu costumo utilizar informando o nome do campo, e no seu está sem nada:

$this->upload->do_upload('fileNomeCampo')

alem disso, o form está com o multipart, correto?
#16

[eluser]cebalzer[/eluser]
Entao os erros do form acontece porque quando mando alterar passo as variaveis para os values do form,
Code:
<span class="text-form">Título: *</span>
&lt;input name="title" id="title" type="text" value='&lt;?= @$listaF[0]-&gt;title; ?&gt;'/&gt;
mas isso nao e o problema creio, no if quando der o erro do upload ele retorna o erro da funcao do upload mesmo, entao ele me mostra sem o redirecionamento como vc disse pra fazer, mostrando so o caminho invalido mesmo.
The upload path does not appear to be valid.
Code:
if (!$this->upload->do_upload()) {
                $error =  $this->upload->display_errors();
                echo $error;
            }
#17

[eluser]cebalzer[/eluser]
Verdade nao passei o nome do campo, o form esta multipart sim, vou colocar o nome do campo pra testar ok
#18

[eluser]mestresan[/eluser]
ah, entao é o seu path... usa como variavel, que é garantido que pegará o caminho do seu servidor:

$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . '/uploads/';

#19

[eluser]cebalzer[/eluser]
Agora sim, funcionou com essa configuracao, agora deu outro erro de library GD
Your server does not support the GD function required to process this type of image.
Mas isso creio que precise ver com a locaweb como vai funcionar.
Mesmo assim se ouber de alguma coisa que possa ajudar nisso fico grato.
Por enquanto so tenho a agradecer a vc meu amigo, muito obrigado!

#20

[eluser]cebalzer[/eluser]
Houve um engano, eu nao reparei na primeira linha antes do erro de GD, mas ainda continua acontecendo o erro de caminho inválido, agora ficou complicado.
Dei um echo pra ter certeza
Code:
if (!$this->upload->do_upload('userfile')) {
                echo $this->upload->display_errors();
            } else {
                $data = $this->upload->data();
            }




Theme © iAndrew 2016 - Forum software by © MyBB