Skip to content

Commit

Permalink
### Changed
Browse files Browse the repository at this point in the history
* Fixed an issue with the downloadFile controller action
* Broke out the changelog to `CHANGELOG.md`
* Updated `README.md`
  • Loading branch information
khalwat committed Mar 5, 2017
1 parent a914a4c commit 7545301
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 29 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Transcoder Changelog

## 1.1.1 - 2017.03.05
### Changed
* Fixed an issue with the downloadFile controller action
* Broke out the changelog to `CHANGELOG.md`
* Updated `README.md`

## 1.1.0 - 2016.09.12
### Added
* Initial release

Brought to you by [nystudio107](https://nystudio107.com)
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

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

Related: [Transcoder for Craft 3.x](https://github.com/nystudio107/craft3-transcoder)

## Installation

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

## Transcoder Changelog

### 1.1.0 -- 2016.09.12

* Initial release

Brought to you by [nystudio107](https://nystudio107.com)
4 changes: 2 additions & 2 deletions controllers/TranscoderController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public function actionDownloadFile()
$url = urldecode(craft()->request->getParam('url'));
$filepath = parse_url($url, PHP_URL_PATH);
$filepath = $_SERVER['DOCUMENT_ROOT'] . $filepath;
$content = IOHelper::getFileContents($path);
craft()->request->sendFile($path, $content, array('forceDownload' => true), true);
$content = IOHelper::getFileContents($filepath);
craft()->request->sendFile($filepath, $content, array('forceDownload' => true), true);
} /* -- actionDownloadFile */

}
12 changes: 11 additions & 1 deletion releases.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"version": "1.1.1",
"downloadUrl": "https://github.com/nystudio107/transcoder/archive/master.zip",
"date": "2017-03-05T14:52:56.996Z",
"notes": [
"[Fixed] Fixed an issue with the downloadFile controller action",
"[Added] Broke out the changelog to `CHANGELOG.md`",
"[Improved] Updated `README.md`"
]
},
{
"version": "1.1.0",
"downloadUrl": "https://github.com/nystudio107/transcoder/archive/master.zip",
Expand All @@ -7,4 +17,4 @@
"[Added] Initial release"
]
}
]
]
20 changes: 0 additions & 20 deletions resources/icon-mask.svg

This file was deleted.

0 comments on commit 7545301

Please sign in to comment.