Skip to content

Commit abd33ef

Browse files
committed
fix: use video filename in download filename
1 parent 23287e8 commit abd33ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/VideoExplorer/Home/MainView.js

+2
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,14 @@ class MainView extends React.Component {
188188
<p>
189189
<a
190190
href={`${selectedVideo.path}output.mp4`}
191+
download={`${selectedVideo.name}.mp4`}
191192
className="badge badge-secondary"
192193
>
193194
<i className="fas fa-download" /> Original video
194195
</a> &nbsp;
195196
<a
196197
href={`${selectedVideo.path}output_bbox.mp4`}
198+
download={`${selectedVideo.name}_bbox.mp4`}
197199
className="badge badge-secondary"
198200
>
199201
<i className="fas fa-download" /> Video with bounding boxes

0 commit comments

Comments
 (0)