Skip to content

Commit

Permalink
(Feature) Grab Name From Torrent File
Browse files Browse the repository at this point in the history
- closes #78
  • Loading branch information
HDVinnie committed Jan 4, 2018
1 parent a01ec21 commit 326210e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions resources/views/torrent/upload.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,20 +54,19 @@
<div class="upload col-md-12">
<h3 class="upload-title">Upload A Torrent</h3>
{{ Form::open(['route' => 'upload', 'files' => true, 'class' => 'upload-form']) }}
{{ csrf_field() }}
<div class="form-group">
<label for="torrent">Torrent File</label>
<input class="upload-form-file" type="file" name="torrent">
<input class="upload-form-file" type="file" name="torrent" id="torrent" onchange="document.getElementById('name').value = this.value.split('\\').pop().split('/').pop()">
</div>

{{--<div class="form-group">
<div class="form-group">
<label for="nfo">NFO File (Optional)</label>
<input class="upload-form-file" type="file" name="nfo">
</div>--}}
</div>

<div class="form-group">
<label for="name">Title</label>
<input type="text" name="name" class="form-control">
<input type="text" name="name" id="name" class="form-control">
</div>

<div class="form-group">
Expand Down

0 comments on commit 326210e

Please sign in to comment.