nukautkata Posted December 11, 2010 Report Share Posted December 11, 2010 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. Quote Link to comment Share on other sites More sharing options...
briedis Posted December 11, 2010 Report Share Posted December 11, 2010 Protams, ka nevar. Quote Link to comment Share on other sites More sharing options...
nukautkata Posted December 11, 2010 Author Report Share Posted December 11, 2010 Tādā gadījumā vai ir kāda cita iespēja (javascript?) lai šādi varētu? Quote Link to comment Share on other sites More sharing options...
briedis Posted December 11, 2010 Report Share Posted December 11, 2010 Ir visādi flash, java's, vai javascript uploaderi, kas beigās izmanto to pašu file tipa inputu ar freimiem. Kāpēc ir tādas problēmas ar type=file lauku? Quote Link to comment Share on other sites More sharing options...
nukautkata Posted December 11, 2010 Author Report Share Posted December 11, 2010 tāpēc, ka delphos atkal caur webbrowser nevaru dabūt, lai viņš to failu ievadītu. Varu tekstu varu klikšķināt, bet nevaru atrast, kā lai delphi ievada tur failu. Quote Link to comment Share on other sites More sharing options...
briedis Posted December 11, 2010 Report Share Posted December 11, 2010 (edited) 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 December 11, 2010 by briedis Quote Link to comment Share on other sites More sharing options...
nukautkata Posted December 11, 2010 Author Report Share Posted December 11, 2010 Paldies, bet tas jau viss ir nočekots un nekas nav atrasts. Tāpēc meklēju otru piegājienu un meklēju iespēju to izdarīt web lapā. Quote Link to comment Share on other sites More sharing options...
briedis Posted December 11, 2010 Report Share Posted December 11, 2010 Un šitais neder: http://delphi.about.com/od/delphitips2007/qt/httppost_delphi.htm ? Quote Link to comment Share on other sites More sharing options...
nukautkata Posted December 11, 2010 Author Report Share Posted December 11, 2010 nea. bet tas bija vistuvākais Quote Link to comment Share on other sites More sharing options...
Blitz Posted December 12, 2010 Report Share Posted December 12, 2010 (edited) 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 December 12, 2010 by Blitz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.