All language subtitles for 004 Returning File Downloads_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic Download
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranî)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
fa Persian
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu
Would you like to inspect the original subtitles? These are the user uploaded subtitles that are being translated: WEBVTT 00:00.700 --> 00:04.400 It's easy to force the browser to download a file. 00:05.080 --> 00:09.990 You can do that using the download method of the response object. 00:10.840 --> 00:18.180 So let's define our fun slash download route to try this out. 00:20.530 --> 00:28.930 We will be calling the response helper function that will return the response object and then we will 00:28.930 --> 00:31.540 call the downloads method of it. 00:32.720 --> 00:36.290 So the first argument is the path to the fire. 00:37.430 --> 00:41.570 Well, let's first get some file to download. 00:42.050 --> 00:49.160 So under this lecture, you will be able to download this image, make sure you copy it and in your 00:49.160 --> 00:54.830 project folder, go to the public folder and just pasted their. 00:58.030 --> 01:05.950 Now back to the code, so the first argument is the path to the file now to actually give the proper 01:05.950 --> 01:11.160 path to your public folder, you can call the public path helper function. 01:11.980 --> 01:19.050 And now inside it, let's just put slash Daniel Jabe jpeg. 01:19.060 --> 01:21.700 Well, the extension, OK. 01:25.210 --> 01:33.370 The second argument is an optional name, the user will see if it needs to be different from the original 01:33.790 --> 01:44.560 filename so it can be, for example, the face jpg and the third is the least of an optional headers 01:44.560 --> 01:45.520 to return. 01:45.700 --> 01:49.840 This is an array, so we won't add any additional headers. 01:49.840 --> 01:51.100 So let's skip that. 01:53.380 --> 02:04.660 Now we are done and we can try it out in the browser, so the URL is fun, download and to download 02:04.660 --> 02:10.930 should be initiated, but it might not be started automatically as this depends on your browser. 02:11.260 --> 02:16.380 You can see on the bottom that might download has actually started if you missed out. 02:16.900 --> 02:18.070 Let's see this again. 02:18.580 --> 02:25.840 I'll type the euro and watch the bottom as it gets downloaded automatically. 2078

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.