Commit 4e6d7f0c authored by Yuri Resende's avatar Yuri Resende
Browse files

Corrigindo envio do anexo SIPAC na submissão do edital de fluxo contínuo

parent 80d4a0b0
......@@ -327,14 +327,6 @@ class TrabalhoController extends Controller
$trabalho->anexo_docExtra = Storage::putFileAs($pasta, $request->anexo_docExtra, "Documento_Extra." . $request->file('anexo_docExtra')->extension());
}
//Anexo SIPAC
if (isset($request->anexo_SIPAC)) {
if (Storage::disk()->exists($trabalho->anexo_SIPAC)) {
Storage::delete($trabalho->anexo_SIPAC);
}
$trabalho->anexo_SIPAC = Storage::putFileAs($pasta, $request->anexo_SIPAC, "Anexo_SIPAC." . $request->file('anexo_SIPAC')->extension());
}
$trabalho->save();
return $trabalho;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment