Skip to content

Commit 7545301

Browse files
committed
### Changed
* Fixed an issue with the downloadFile controller action * Broke out the changelog to `CHANGELOG.md` * Updated `README.md`
1 parent a914a4c commit 7545301

File tree

5 files changed

+28
-29
lines changed

5 files changed

+28
-29
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Transcoder Changelog
2+
3+
## 1.1.1 - 2017.03.05
4+
### Changed
5+
* Fixed an issue with the downloadFile controller action
6+
* Broke out the changelog to `CHANGELOG.md`
7+
* Updated `README.md`
8+
9+
## 1.1.0 - 2016.09.12
10+
### Added
11+
* Initial release
12+
13+
Brought to you by [nystudio107](https://nystudio107.com)

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Transcode videos to various formats, and provide thumbnails of the video
44

5+
Related: [Transcoder for Craft 3.x](https://github.com/nystudio107/craft3-transcoder)
6+
57
## Installation
68

79
To install Transcoder, follow these steps:
@@ -144,10 +146,4 @@ Some things to do, and ideas for potential features:
144146
* The videos could potentially be resized, either to an aspect ratio or an absolute size or what have you
145147
* Accessors could be written to get information about a video (height, width, duration, and so on)
146148

147-
## Transcoder Changelog
148-
149-
### 1.1.0 -- 2016.09.12
150-
151-
* Initial release
152-
153149
Brought to you by [nystudio107](https://nystudio107.com)

controllers/TranscoderController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public function actionDownloadFile()
3232
$url = urldecode(craft()->request->getParam('url'));
3333
$filepath = parse_url($url, PHP_URL_PATH);
3434
$filepath = $_SERVER['DOCUMENT_ROOT'] . $filepath;
35-
$content = IOHelper::getFileContents($path);
36-
craft()->request->sendFile($path, $content, array('forceDownload' => true), true);
35+
$content = IOHelper::getFileContents($filepath);
36+
craft()->request->sendFile($filepath, $content, array('forceDownload' => true), true);
3737
} /* -- actionDownloadFile */
3838

3939
}

releases.json

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
[
2+
{
3+
"version": "1.1.1",
4+
"downloadUrl": "https://github.com/nystudio107/transcoder/archive/master.zip",
5+
"date": "2017-03-05T14:52:56.996Z",
6+
"notes": [
7+
"[Fixed] Fixed an issue with the downloadFile controller action",
8+
"[Added] Broke out the changelog to `CHANGELOG.md`",
9+
"[Improved] Updated `README.md`"
10+
]
11+
},
212
{
313
"version": "1.1.0",
414
"downloadUrl": "https://github.com/nystudio107/transcoder/archive/master.zip",
@@ -7,4 +17,4 @@
717
"[Added] Initial release"
818
]
919
}
10-
]
20+
]

resources/icon-mask.svg

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)