Jump to content
php.lv forumi

FileUpload kad Html type=Text


nukautkata

Recommended Posts

Nu tāda vajadzība radās, kad Html kodā ievadīt varu tekstu:

<input type="text" name="file" id="file">

nevis izmantot

<input type="file" name="file" id="file">

vai var php pēc tam likt to saprast kā faila atrašanās vietu (C:\Direktorija\mansfails.txt) un veikt upload uz mājaslapu

Ceru, ka problēmu sapratāt.

Link to comment
Share on other sites

Tad jau šis nebūs īstais forums. Dodies vien uz kādu delphi forumu. Varu derēt, ka 101 cilvēks jau ir saskāries ar šādu problēmu.

 

Labi, rekur ar karotīti tev: http://www.google.lv/search?q=delphi+web+browser+upload+file&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:lv:official&client=firefox-a

Edited by briedis
Link to comment
Share on other sites

Par file lauka vertibas pieskirsanu ar JS, utt.

I'm afraid it is impossible to set a default value for file input. If you could, it would be a huge security risk because you can just upload any file on the user's computer on to yours without their notice even (with Javascript submit() and stuff).

 

Browseris drosiba apsverumu del, neatlaus to darit nekada gadijuma, jo tas paver iespeju no tava kompja weblapai dabut ara pilnigi jebko. Tapec file vertiba, tikai un vienigi manuali noradaama.

Edited by Blitz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...