পণ্যের অংশে চলে যান
LCPanelলাইসেন্স সেন্টার প্যানেল
BXP BoxPuff টি অধ্যায়

BoxPuff ডকুমেন্টেশন

ফাইল ইম্পোর্ট

সার্ভারে আগে থেকে থাকা ফাইল - যেমন FTP-তে তোলা - একটি অ্যাকাউন্টের ফাইল হয়ে যায়, কয়েকশো করে ধাপে ধাপে, যাতে টাইম-আউট না হয়। ফ্রি।

প্লাগইন হালনাগাদ ৬ নভে ২০২৬ ২৬ / ৫০

The File Import plugin turns files that are already on your server into files of an account. You copy a folder onto the server with FTP, rsync or scp - a thousand photos, an archive of old downloads, a whole site you are moving - point the plugin at it, name the account, and every file becomes a normal BoxPuff file with a short link, in the folder you chose, with sub-folders kept. Big batches run in rounds of a few hundred so no web request ever times out, and the same import can be run from the command line.

Who it is for

The owner, when seeding a new site with content, moving a plain "folder of files" host into BoxPuff, or helping a member who has far too much for a browser upload. Members who want to send big batches themselves are better served by the FTP Upload plugin; this one is an admin tool.

Switching it on

File Import is free and works with every licence; a fresh install switches it on. Otherwise open Admin → Extensions → Plugins (Manage Plugins) and switch it on. Its page appears under Extensions as Bulk Import (/admin/plugin/file-import). Switching it on makes the folder uploads/import/, the default import root.

Settings

The plugin's own options:

  • Import root folder (uploads/import) - relative to the script root, or an absolute path. Only folders under it can be imported from; nothing outside is ever read, which keeps the tool from being pointed at config.php or somebody's home directory.
  • Files per round (200) - how many files one web request imports before the page continues by itself.
  • Remove the source file after import (on) - the file is moved into storage. Off: the source stays and the file is copied, which needs twice the disk while it runs.
  • Keep sub-folders (on) - sub-folders of the chosen folder become folders in the account, made as needed. Off: everything lands flat in the target folder.

The Import Tool

  1. Put the files in a sub-folder of the import root, for example uploads/import/photos-2026/. The page shows the root's full path and whether it exists. Hidden files, index.html and .htaccess are skipped.
  2. On Bulk Import → Import Tool, Select path to import lists the sub-folders of the root (or the import root itself).
  3. Import into account - type the username; the box suggests existing accounts.
  4. Import into account folder - 0 for the root of the account, or a folder id (open the folder in Files → Manage Files, or the member's file manager, to see it). Sub-folders of the import folder are created under it when Keep sub-folders is on.
  5. Import files. The page imports one round, shows N file(s) imported into the account name and, when files are left, the next round starts in a moment and submits itself again after a second and a half (there is a Continue now button if you are impatient). The first twenty errors of a round are listed.

Each file goes through exactly the same road as an upload (upload_store()): the account's package decides the largest file and the allowed extensions, blocked extensions and keywords apply, the MD5 is computed, an identical file already in the account is reused rather than stored twice, and the file lands on whichever file server the site's selection method picks - local disk, a Direct node or a bucket (File servers). Files are recorded with upload_source = import, and the File Previewer makes thumbnails for pictures. A file the package refuses is left in place with .failed added to its name (when sources are removed), so you can see what did not go in.

Every round is written to People → User Action Logs as Imported N file(s) from ….

Manual Import (the command line)

For really large batches - tens of thousands of files, or a slow host - the Manual Import tab shows the exact command for your server:

cd /home/you/public_html
/usr/bin/php plugins/file-import/import.php --user=USERNAME --path=SUBFOLDER [--folder=FOLDER_ID]

Run it over SSH (or as a one-off cron job). It imports in rounds of 100, prints imported N, left M after each, and keeps going until the folder is empty. No web request is involved, so nothing can time out, and it is safe to stop and run again. The plugin must be switched on, and --user must be an existing account.

Tips

  • Upload the source files with FTP or rsync first, then import; the import itself is fast because files are moved, not re-uploaded.
  • Make the account's package roomy before you start: Max Upload Size and Storage Allowance under Account packages apply to every imported file, and a too-small limit produces a long list of .failed files.
  • With Remove the source file after import off, check the free disk twice - the originals and the stored copies both exist until you clean up.
  • Importing into a bucket or an SFTP server takes as long as the upload to it; the local disk is quickest.
  • To move a YetiShare site, use the YetiShare Migration plugin instead: it keeps users, folders, links and statistics, and copies no file at all.
এটি কি কাজে লেগেছে?
এই অধ্যায়টি শেয়ার করুন