PHP-and-MySQL/C4/File-Upload-Part-2/Khasi

From Script | Spoken-Tutorial
Revision as of 21:06, 4 November 2017 by Meboreen Mary (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Time Narration
00:00 Sa shisien ngi pdiangsngewbha ia phi. Ha ka bynta banyngkong jong kane ka jinghikai, nga lah pyni ia phi kumno ban shim ia ki jinglong bathikna jong ka file ba lah dep upload jong ngi da kaba pyndonkam ia kane ka form hangne.
00:10 Mynta ngan pyni ia phi kumno ban upload ia kane ka file bad pynkynriah ia ka sha ka "uploaded" folder hangne kaba ia mynta ka dang thylli.
00:18 Lada phi kynmaw, ngi ia thew sha ka jaka ba shipor kaba don ha ka web-server jong ngi.
00:25 Kam da long donkam than ia mynta.
00:29 Ngi don ia baroh ki properties jong ngi hangne, te ngan ong "properties of the uploaded file", te ngi tip kaei kaba ngi leh.
00:34 Ngi don ia ki properties hangne.
00:38 Nga la ai ia ki baroh ki kyrteng variables kiba suk ban kynmaw; te ngim donkam ban comment ia kine kawei pa kawei.
00:46 Ka kam bayngkong ba ngin leh kadei, shna ia ka if statement ban check lada don kino kino ki errors.
00:53 Hangne, lada ka error code ka kham heh ban ia zero kaba mut lah dep issue ia ka da ka error code te ngan ong 'die'.
01:03 Bad ngan ai ia ka error message "File couldn't..."
01:11 Lane "Error uploading file! code $error".
01:20 Kane kan ai ia u user ia ka error code.
01:23 Mynta ka bynta jong ka else
01:25 Ngan pyndap ia kine ki curly brackets ban pynlong suk ia katei bad ha kawei ka line.
01:29 Te else, nga kwah ban pyndonkam ia ka function ba kyrteng 'move_uploaded_file()'.
01:39 Nangta ngin shim ia ka kyrteng ba tang shipor 'temp' kaba dei ka parameter banyngkong jong kane ka function bad ka parameter ba ar kadei ka destination kaba dei ka 'uploaded folder'.
01:51 Te, ngan type 'uploaded' bad u forward slash.
01:59 Bad ha kaba kut jong katei ngin pyniasnoh ia ka kyrteng jong ka file kaba ngi lah upload.
02:07 Te, hangne, kan shu dei '$name'.
02:10 Kane ka pyni ba u user u shu pyndap ia ki inter variables hangne.
02:15 Lym kumta ngin sa hap ban type ia kine, kum ka nuksa - "temp_name".
02:19 Nangta leit hangne bad buh ia ka kumne.
02:22 Ka la i kulmar bad jynjar ban pule.
02:25 Te, ka kham suk ban shu buh ia kine ki variables hangne.
02:33 Kabiang, te mynta ngan iaid lait na kine lane ngan buh ia kine.
02:37 Bad khatduh eh echo ia ka message kaba ong "Upload complete!".
02:41 To ngin pyrshang ia kane.
02:47 Nga lah logon ha ka page jong nga bad jied ia ka file jong ngi - 'intro to avi'.
02:51 Ngan nion ha upload bad ngi lah ban iohi ba "Upload is complete!".
02:55 To ngin check ia ka file jong nga.
02:57 Upload folder bad nion ha ka "uploaded" sub directory jong nga, phi lah ban iohi ba ka file ka don hangne katba mynshwa ka shah buh ha ka temporary directory ha ka web- server jong nga.
03:08 Te ngi lah dep upload ia ka file jong ngi hangne bad ka long kaba jop.
03:13 Don sa katto katne ki kam ba ngi donkam ban leh.
03:15 Undo ia kawei pat ka if statement lane undo ia kane kaif statement.
03:20 Ngin ia check na ka bynta ki file types bathikna kiba ngim kwah ban upload.
03:24 Te kum ka nuksa to ngin ong, ngam kwah ia ki 'avi' files ban shah upload.
03:30 Kaba nga lah ban leh hangne kadei, shu ong – lada error ka kham heh ban ia zero, wat upload ia ki files.
03:37 Lym kumta ngan sdang ia kaif statement bathymmai hapoh jong ka else.
03:41 Bad ngan shna ia ka block hangne.
03:47 Bad kine kidei ki conditions na ka bynta ka file.
03:51 Ngan ong- lada ka jait file – kata ka $type variable jong ngi, t-y-p-e, 2 equal to signs, equals video slash avi.
04:09 Kumba phi lah iohi ha ka bynta banyngkong jong kane, ha mar ba nga echo ia ka, ka iaryngkat bad video slash avi.
04:19 Bad nangta ngi ong lada ka iaryngkat bad video slash avi te upload ia ka file.
04:28 Ngan shu pynkynriah ia ka hangne hapoh bad ngan buh ia katei ha ka else block.
04:32 Te mynta nga don – lada ka video ka iaryngkat bad avi te die bad ka message kadei "That format is not allowed!".
04:44 Te mynta ngan delete ia kane na ka uploaded directory jong ngi bad ngan wan phai biang sha ka uploaded file basdang jong nga.
04:54 Ngan jied 'intro dot avi' bad haba nga nion Upload, ka ong ba "That format is not allowed!".
05:01 Bad lada phi leit sha ka 'uploaded' directory jong nga, phi lah ban iohi ba ka folder kam don eiei.
05:06 Khlem pat upload eiei.
05:08 Mynta ha ka jaka jong 'avi' to ngin ong nga kwah ban ban ia ki 'images with png' extension.
05:15 Ngan pynkylla ia ka hangne bad upload ia ka file jong nga sa shisien.
05:23 Phi lah ban iohi ba kadei ka file format kaba lah pdiang, ngi iohi ia ka message "Upload complete!" bad lah dep phah sha ka 'uploaded' folder jong nga.
05:33 To ngin delete ia katei sa shisien. Oh! Nga lah cancelled ia ka. To ngin delete ia katei sa shisien.
05:42 Te kaba ngi iohi hangne kadei kumno ban pynthikna ia ka type.
05:47 Kaba ngi lah ruh ban leh kadei ban specify ia ka file size.
05:51 Nga ong 'or' da kaba pyndonkam or operator bad ngan ong or ka $size ka kham heh ban ia shiteng jong ka megabyte.
06:04 Kane kadei shiteng jong ka megabyte kaba dei sanspah hajar bits , map ia nga bytes. Nga tharai nga lah leh bakla bad ong bits ha ka jaka jong bytes.
06:14 Te katei kadei san spah hajar bytes kaba iaryngkat bad 0 point 4 megabytes. Ngan shu ong shiteng jong ka megabyte ia mynta.
06:29 Kane kan evaluate ia ka size bad shu ong ka kham heh ban ia shiteng ka megabyte.
06:38 Nangta kan sa ong ia kane "Format is not allowed".
06:43 Te ngan pynkylla ia kane ka message ban pynrung ia ka "Format not allowed or file size too big".
06:56 Te, phi lah ban shna ia ka if statement na ka bynta man kawei na kine kata kadei na ka bynta ban evaluate ia ka $type jong phi bad evaluate ia ka $size jong phi.
07:03 Phi shu donkam ban shim ia kane ka condition bad buh ia ka ha kawei pat ka if statement.
07:09 Te, nga leit biang hangne bad ngan jied ia ka file jong nga sa shisien.
07:12 Tang ban shu pynthikna ba ka don hangtei.
07:14 Nion Upload bad kan ong "Format not allowed...".
07:19 Mynta lada phi phai biang sha u code jong ngi, kane kam dei ha ka 'png' format tangba ka palat ban ia ka size ba la buh.
07:25 To ngin pynkylla ia kane sha 2 million kaba dei 2 megabytes.
07:31 Refresh bad send ia katei.
07:33 Ngi lah ban iohi ba ka upload jong ngi ka lah dep namar kane kadei tang shi megabyte ka jingheh.
07:39 Tang katto nga don halor ka File Upload ia mynta.
07:44 Kane kadei baroh kaba phi donkam ban tip ban pyndonkam ia kane ban buh ia ki file types ba thikna bad ki file sizes kiba lah heh palat na ka bynta ka web-server jong phi.
07:54 Lada phim kwah ia ki files kiba heh ha ka web server jong phi, kane kadei ka lad ba biang ban tehlakam ia ka.
07:58 Ka suk bha ban shna kumba phi lah iohi.
08:01 Pyrshang ia kane bad phin sa sngewtynnad ba haduh katno kane ka lah ban long kaba iarap.
08:05 Lada phi don jingkylli eiei sngewbha wat don jing artatien ban kylli.
08:08 Bad ruh sngewbha subscribe , lada phi kwah ban ioh jingtip halor ki updated videos lane ki videos ba thymmai.
08:15 Khublei shibun . Nga i Meboreen na Shillong nga dubbed na ka bynta ka Spoken Tutorial Project.

Contributors and Content Editors

Meboreen Mary