Jump to content
php.lv forumi

file_upload un file_delete


Klokjis

Recommended Posts

reku jautaajums... smiekliigi jau izklausaas. bet ar standarta name iznaak, bet varbuut kaads var paliidzeet izskaidrot kaartiigi sho funkciju...

 

// attels ir njemc no form'a
$fails = 'attels';
$filename = '../images/preces/albumi/'.$_FILES[$fails]['name'];

if (@move_uploaded_file($_FILES[$fails]['tmp_name'], $filename))
{};

 

$_FILES[$fails]['name'] << kursh sheit ir nosaukums failam, kuru upload'o?

Link to comment
Share on other sites

Klokjis--> tu laikam esi izliecies?

Panjem ainglu -latvieshu vardniicu un apskaties ko noziimee name?

edit: nu kaadeelj neviens negrib domaat?

peec.

$filename = '../images/preces/albumi/'.$_FILES[$fails]['name'];

uzliec

echo $filename;

un paskaties kas sanaaks....

Edited by Grey_Wolf
Link to comment
Share on other sites

;)) Nu grey wolf, sorry... esmu, esmu izliecies! :D

 

edit: dooh! :) bish tomeer nav taa kaa vajadzeetu. :D

kjipa ->

$filename= 'upload/'.$_FILES[$fails]['name'];

if (@move_uploaded_file($_FILES[$fails]['tmp_name'], $filename))

 

to nosaukumu domaaju, deelj taa, ka it kaa vajag panjemt failu x.jpg (ko ievada formaa un $fails = 'input_file_name') un upload'ot kaa bilde.jpg un doma tam bija taada - kaa var upload'ojot rename'ot failu?!

Edited by Klokjis
Link to comment
Share on other sites

×
×
  • Create New...