我担心这样做的可行性:在预配置的机器上,我将预安装一个Web应用程序,在Apache-Suite旁边.所以客户端和服务器是一样的!
在此Web应用程序中,用户可以将 PDF文件拖放到USB图标.
然后,Web应用程序应将删除的PDF写入附加的USB-Stick.
我从来没有做过这样的事情(写入USB),所以我相当不安全.我很清楚有关JavaScript和Filesystem-Access的浏览器限制,但......
在研究了一下后我发现,可能有一些可能的和
相关的(我是一个Web平台 - Guy)解决方案:
现在我想知道:
我正在使用Silex构建应用程序,尽管它不是典型的Silex设置.
我有胡子作为模板引擎.
我没有使用Doctrine for ORM/DBAL,我正在使用Capsule (Silex-Eloquent),并且遇到了一些严重问题.
目前我有一个表格:
<form class="form-horizontal" role="form" action="app.php/listing" method="POST" id="listing-submit">
<div class="form-group">
<label class="control-label col-sm-2" for="title">Listing Title</label>
<div class="col-sm-6">
<input id="title" class="form-control" type="text" size="40" autocomplete="off"
data-encrypted-name="title"/>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="description">Description</label>
<div class="col-sm-6">
<textarea id="description" class="form-control" rows="8"></textarea>
</div>
</div>
<div class="form-group">
<label class="control-label col-sm-2">Images</label>
<div class="col-sm-6">
<input type="file" name="images[]" id="images" multiple/>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-6">
<button type="submit" class="btn btn-default">Submit</button>
</div>
</div>
</form>
Run Code Online (Sandbox Code Playgroud)
我用它来选择文件,但是到目前为止我看到的所有Silex和文件上传的例子都使用了我不熟悉的东西,并且不确定我是否可以使它适应我的使用:FormBuilder ,FormBuilderInterface,注册自定义类型和所有爵士乐......
到目前为止,这是Controller-Part:
$app->post("/plisting", function () use ($app) …Run Code Online (Sandbox Code Playgroud)