Skip to content

WebDAV Channel ထည့်သွင်းခြင်း

ဘယ်အချိန်မှာ သုံးသင့်လဲ

WebDAV channel ကို ဒီလိုအခြေအနေတွေမှာသုံးပါ:

  • WebDAV endpoint ပေးတဲ့ NAS, cloud drive, object storage service ရှိလျှင်။
  • uploaded images တွေကို ကိုယ်ပိုင် WebDAV directory ထဲသိမ်းချင်လျှင်။
  • credentials တွေကို frontend မှာကြာရှည်မဖော်ပြဘဲ D1 upload_channels table ထဲသိမ်းချင်လျှင်။

စမလုပ်ခင် လိုအပ်တာတွေ

လိုအပ်ချက်အသုံးပြုပုံ
WebDAV Endpointserver-side WebDAV URL၊ ဥပမာ https://nas.example.com/dav
UsernameWebDAV service ကို sign in ဝင်ရန်။
PasswordWebDAV service ကို sign in ဝင်ရန်။
Authentication modedefault က Basic ဖြစ်သည်။ server ကလိုအပ်မှသာ Digest သို့မဟုတ် auto negotiation သုံးပါ။
Storage directoryfiles သိမ်းမယ့် directory။ default က imgbed

ဘယ်နေရာမှာ ထည့်မလဲ

  1. System Settings ကိုဖွင့်ပါ။
  2. Upload Settings ကိုသွားပါ။
  3. ညာဘက်အပေါ်ထောင့်က Add Channel ကိုနှိပ်ပါ။
  4. WebDAV ကိုရွေးပါ။

Field Reference

FieldအသုံးပြုပုံRequired
Channel nameဒီ WebDAV channel အတွက် မှတ်မိလွယ်တဲ့အမည်၊ ဥပမာ koofr သို့မဟုတ် nasYes
Endpointhttps:// ပါတဲ့ WebDAV endpoint အပြည့်အစုံ။Yes
UsernameWebDAV login username။Yes
PasswordWebDAV login password။Yes
Authentication modeများသောအားဖြင့် Basic။ server က digest authentication လိုလျှင် Digest သုံးပါ။Yes
Storage directoryfiles သိမ်းမယ့် directory။ default က imgbedNo

ဥပမာ: fie.nl.tab.digital

1. App Password ဖန်တီးပါ

account security settings ကိုဖွင့်ပြီး application passwords ကိုရှာကာ app password အသစ်ဖန်တီးပါ။

Create an app password

ဖန်တီးပြီးရင် app password အသစ်ကို copy လုပ်ပြီးသိမ်းပါ။ များသောအားဖြင့် တစ်ကြိမ်ပဲပြပါမယ်။

Save the new app password

2. ImgBed မှာ WebDAV Configuration ဖြည့်ပါ

ImgBed ကိုပြန်သွားပြီး WebDAV channel ထည့်ပါ:

UI FieldValue
Endpointhttps://fie.nl.tab.digital/ ကပေးတဲ့ WebDAV URL။
Usernameသင့် WebDAV username။
Passwordမကြာသေးခင်ဖန်တီးထားတဲ့ app password။
Authentication modeအများစုမှာ Basic နဲ့စပါ။
Storage directorydefault က imgbed; custom directory လည်းသုံးနိုင်သည်။

Fill in the configuration

File ကြီး Upload လုပ်ပုံ

WebDAV channel က အခု real session-based chunked upload ကိုသုံးပါတယ်။

file သေးတွေကို complete file တစ်ခုအဖြစ် upload လုပ်ပါတယ်။ 64 MiB ထက်ကြီးတဲ့ files တွေကို 10 MiB ဝန်းကျင် chunks တွေအဖြစ် ခွဲပြီး remote chunk directory ထဲ upload လုပ်ပါမယ်။

WebDAV service က partial update သို့မဟုတ် offset-based writes ကို support လုပ်ဖို့မလိုပါ။ ImgBed က remote server ပေါ်မှာ chunks တွေကို file ကြီးတစ်ခုအဖြစ် merge မလုပ်ပါ။ chunk manifest သိမ်းပြီး file request လာတဲ့အခါ chunks တွေကိုအစဉ်လိုက်ဖတ်ပါမယ်။

File SizeUpload MethodRemote Storage Layout
64 MiB သို့မဟုတ် ပိုသေးNormal uploadcomplete file တစ်ခု
64 MiB ထက်ကြီးReal session chunked uploadchunk files အများကြီးပါသော chunk directory

chunk directory က remote storage layout ကိုပဲသက်ရောက်ပါတယ်။ ImgBed ထဲက file URL မပြောင်းပါ။ users တွေက မူလ /file/... link ကနေ file ကိုဆက်လက် access လုပ်နိုင်ပါတယ်။

Setup Steps

  1. Upload Settings ကိုဖွင့်ပါ။
  2. Add Channel ကိုနှိပ်ပါ။
  3. WebDAV ကိုရွေးပါ။
  4. မှတ်မိလွယ်တဲ့ channel name ထည့်ပါ၊ ဥပမာ koofr
  5. WebDAV endpoint ထည့်ပါ၊ ဥပမာ https://app.koofr.net/dav/Koofr
  6. username နဲ့ password ထည့်ပါ။
  7. authentication mode ကို default Basic အတိုင်းထားပါ။
  8. storage directory ကို imgbed အတိုင်းထားနိုင်ပြီး ကိုယ်ပိုင် directory လည်းထည့်နိုင်ပါတယ်။
  9. Save ကိုနှိပ်ပါ။
  10. Save ပြီးနောက် channel card စစ်ပါ၊ capacity query ရနိုင်လျှင် query လုပ်ပါ၊ test file တစ်ခု upload လုပ်ပါ။

စစ်ဆေးနည်း

Checkစစ်ဆေးပုံ
Channel card appearsSave ပြီးနောက် Upload Settings မှာ WebDAV channel card ပေါ်လာရပါမယ်။
Channel is enabledcard ရဲ့ ညာဘက်အပေါ် switch က on ဖြစ်ရပါမယ်။
Credentials are saveddetail view မှာ Endpoint, username, authentication mode, storage directory တွေမြင်ရပါမယ်။
Small file upload workstest image upload လုပ်ပြီး WebDAV directory ထဲ file ပေါ်လာလားစစ်ပါ။
Large file rule works64 MiB ထက်ကြီးတဲ့ files တွေက chunked upload သုံးပြီး remote chunk directory ဖန်တီးရပါမယ်။
Capacity query worksserver က capacity information support လုပ်ရင် used နဲ့ total capacity ပြပါမယ်။

Quota query succeeded

FAQ

WebDAV file ကြီးတွေက chunk directory ဘာကြောင့်ဖန်တီးလဲ?

ဒါက file ကြီးတွေအတွက် လက်ရှိ storage method ဖြစ်ပါတယ်။

64 MiB ထက်ကြီးတဲ့ files တွေကို remote side မှာ file ကြီးတစ်ခုအဖြစ် merge မလုပ်ပါ။ chunk directory အဖြစ်သိမ်းပြီး ImgBed က chunk manifest ကို record လုပ်ကာ complete content ကို chunks အစဉ်လိုက်ဖတ်ပြီးပြန်ပေးပါတယ်။

large file upload fail ဖြစ်ရင် အရင်ဆုံးဘာစစ်ရမလဲ?

Endpoint, username, password, storage directory ကိုအရင်စစ်ပါ။ ပြီးရင် WebDAV service က directory creation, file writing, file reading ကို allow လုပ်လား confirm လုပ်ပါ။

capacity query fail ဖြစ်ပေမယ့် small file upload အလုပ်လုပ်ရင် server က capacity reporting ကိုမထောက်ပံ့တာ သို့မဟုတ် ကန့်သတ်ထားတာဖြစ်နိုင်ပါတယ်။ upload မရဘူးလို့ တန်းမဆိုလိုပါ။

ဘယ် authentication mode သုံးရမလဲ?

Basic နဲ့စပါ။

server က digest authentication လိုတယ်လို့တိတိကျကျပြထားရင် Digest သုံးပါ။

မသေချာရင် automatic negotiation ကိုသုံးပါ။

Quick Checklist

text
WebDAV endpoint, username, password ပြင်ဆင်ပါ
-> Upload Settings ဖွင့်ပါ
-> Add Channel
-> WebDAV ရွေးပါ
-> Endpoint / username / password ထည့်ပါ
-> authentication mode ကို default Basic ထားပါ
-> storage directory ကို default imgbed ထားပါ
-> Save
-> capacity query
-> test file upload

Released as user documentation for CloudFlare ImgBed.