<%include file="/pageheader.html" />
<%!
from kaithem.src.chandler import m3u_io
%>
<%
if 'file' in kwargs:
   x = kwargs['file'].file.read().decode()
   m3u_io.import_m3u(module.board.groupmemory[kwargs['id']], x)

%>
<h2>Upload a setup file</h2>
<div class="window paper">
    <form method=POST enctype="multipart/form-data">

        You can upload a M3U setup file here.  All sound files will be added as new cues.
        This process may take a rather long time if some filenames are broken.
        <input type="file" name="file"></input>
        <input type="submit"></input>
    </form>
</div>
<%include file="/pagefooter.html" />

