Skip to content

WebDAV Channel যোগ করা

কখন সবচেয়ে উপযোগী

WebDAV channel ব্যবহার করুন যখন:

  • আপনার NAS, cloud drive বা object storage service WebDAV endpoint দেয়।
  • Uploaded images নিজের WebDAV directory-তে সংরক্ষণ করতে চান।
  • Credentials দীর্ঘমেয়াদে frontend-এ expose না করে D1 upload_channels table-এ save করতে চান।

শুরু করার আগে যা লাগবে

RequirementPurpose
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 nameWebDAV channel-এর চেনা যায় এমন নাম, যেমন koofr বা nasYes
Endpointhttps://-সহ full WebDAV endpoint।Yes
UsernameWebDAV login username।Yes
PasswordWebDAV login password।Yes
Authentication modeসাধারণত Basic; server digest authentication চাইলে Digest ব্যবহার করুন।Yes
Storage directoryFiles যেখানে রাখা হবে। Default imgbedNo

Example: fie.nl.tab.digital

1. App Password তৈরি করুন

Account security settings খুলুন, application passwords খুঁজুন এবং নতুন app password তৈরি করুন।

Create an app password

তৈরি হওয়ার পর নতুন app password copy করে save করুন। সাধারণত এটি একবারই দেখানো হয়।

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

Large File Upload Behavior

WebDAV channel এখন real session-based chunked upload ব্যবহার করে।

ছোট files একটিমাত্র complete file হিসেবে upload হয়। 64 MiB-এর বড় files automatically প্রায় 10 MiB করে chunks-এ ভাগ হয়ে remote chunk directory-তে upload হয়।

WebDAV service-এর partial update বা offset-based writes support করার দরকার নেই। ImgBed remote server-এ chunks merge করে একটিমাত্র বড় file বানায় না। এর বদলে chunk manifest store করে এবং file request হলে chunks ক্রমানুসারে পড়ে।

বাস্তবে:

File SizeUpload MethodRemote Storage Layout
64 MiB বা কমNormal uploadএকটি complete file
64 MiB-এর বেশিReal session chunked uploadMultiple chunk files থাকা chunk directory

Chunk directory শুধু remote storage layout-এ প্রভাব ফেলে। ImgBed-এর file URL বদলায় না। Users আগের মতো original /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. Default হিসেবে authentication mode Basic রাখুন।
  8. Storage directory imgbed রাখুন, বা নিজের directory দিন।
  9. Save ক্লিক করুন।
  10. Save করার পর channel card check করুন, capacity available হলে query করুন, এবং test file upload করুন।

কীভাবে যাচাই করবেন

Checkকীভাবে যাচাই করবেন
Channel card দেখা যায়Save করার পর Upload Settings পেজে WebDAV channel card দেখা উচিত।
Channel enabledCard-এর upper-right switch on থাকা উচিত।
Credentials save হয়েছেDetail view-তে Endpoint, username, authentication mode এবং storage directory দেখা উচিত।
Small file upload কাজ করেTest image upload করে WebDAV directory-তে file এসেছে কি না দেখুন।
Large file rule কাজ করে64 MiB-এর বড় files chunked upload ব্যবহার করে এবং remote chunk directory তৈরি করে।
Capacity query কাজ করেServer capacity information support করলে query used এবং total capacity দেখাবে।

Quota query succeeded

FAQ

Large WebDAV files কেন chunk directory তৈরি করে?

এটাই large files-এর বর্তমান storage method।

64 MiB-এর বড় files একটিমাত্র large remote file-এ merge হয় না। এগুলো chunk directory হিসেবে store হয়। ImgBed chunk manifest record করে এবং content ফেরত দেওয়ার সময় chunks ক্রমানুসারে পড়ে।

Large file upload fail হলে আগে কী দেখব?

আগে Endpoint, username, password এবং storage directory check করুন। তারপর WebDAV service directory creation, file writing এবং file reading allow করে কি না confirm করুন।

Capacity query fail হলেও small file upload কাজ করলে server হয়তো capacity reporting support করে না বা restrict করে। তার মানে upload unavailable, এমন নয়।

কোন authentication mode ব্যবহার করব?

Basic দিয়ে শুরু করুন।

Server explicitly digest authentication চাইলে Digest ব্যবহার করুন।

নিশ্চিত না হলে automatic negotiation ব্যবহার করুন।

Quick Checklist

text
WebDAV endpoint, username এবং password প্রস্তুত করুন
-> Upload Settings খুলুন
-> Add Channel
-> WebDAV নির্বাচন করুন
-> Endpoint / username / password দিন
-> Default হিসেবে authentication mode Basic রাখুন
-> Default হিসেবে storage directory imgbed রাখুন
-> Save
-> Query capacity
-> Test file upload করুন

Released as user documentation for CloudFlare ImgBed.