Changed default upload path (#1261)

* Changed default upload path

* Update .gitignore

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-12-26 11:54:01 +07:00 committed by GitHub
commit f350c2e2db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 6 additions and 8 deletions

2
.gitignore vendored
View file

@ -7,7 +7,7 @@
composer.phar
configs/local.php
data/avatars
data/torrent_files
data/uploads
internal_data/atom
internal_data/cache
internal_data/log

View file

@ -36,6 +36,7 @@
- Some cleanup for attach mod [\#1250](https://github.com/torrentpier/torrentpier/pull/1250), [\#1255](https://github.com/torrentpier/torrentpier/pull/1255) ([belomaxorka](https://github.com/belomaxorka))
- Use "Views" string for thumbnails [\#1257](https://github.com/torrentpier/torrentpier/pull/1257) ([kovalensky](https://github.com/kovalensky))
- Show user's ban status [\#1258](https://github.com/torrentpier/torrentpier/pull/1258) ([kovalensky](https://github.com/kovalensky))
- Changed default upload path [\#1261](https://github.com/torrentpier/torrentpier/pull/1261) ([belomaxorka](https://github.com/belomaxorka))
- New Crowdin updates [\#1203](https://github.com/torrentpier/torrentpier/pull/1203), [\#1222](https://github.com/torrentpier/torrentpier/pull/1222), [\#1251](https://github.com/torrentpier/torrentpier/pull/1251) ([Exileum](https://github.com/Exileum))
## [v2.4.0-rc2](https://github.com/torrentpier/torrentpier/tree/v2.4.0-rc2) (2023-12-12)

View file

@ -58,8 +58,8 @@ For installation, you need to follow a few simple steps:
You must provide write permissions to the specified folders:
* `data/avatars`
* `data/torrent_files`
* `data/torrent_files/thumbs`
* `data/uploads`
* `data/uploads/thumbs`
* `internal_data/atom`
* `internal_data/cache`
* `internal_data/log`

View file

@ -35,7 +35,7 @@ CREATE TABLE IF NOT EXISTS `bb_attachments_config`
-- Records of bb_attachments_config
-- ----------------------------
INSERT INTO `bb_attachments_config`
VALUES ('upload_dir', 'data/torrent_files'),
VALUES ('upload_dir', 'data/uploads'),
('upload_img', 'styles/images/icon_clip.gif'),
('topic_icon', 'styles/images/icon_clip.gif'),
('display_order', '0'),

View file

@ -1,3 +0,0 @@
Схема изменений начиная с версии 2.4.0:
Изменения в базе:

View file

@ -584,7 +584,7 @@ $bb_cfg['file_id_ext'] = [
// Attachments
$bb_cfg['attach'] = [
'upload_path' => DATA_DIR . '/torrent_files', // Storage path for torrent files
'upload_path' => DATA_DIR . '/uploads', // Storage path for torrent files
'max_size' => 5 * 1024 * 1024, // TODO: Max size of a file
];