You are not logged in.
Dear users of this forum,
we are pleased to inform you that we will be updating the software behind this forum in the near future.
Existing posts, users and categories will remain untouched.
Important:
We will keep you informed in the pinned thread.
Kind regards,
Your ReportServer Team
Liebe Nutzer dieses Forums,
wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.
Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!
Wichtig:
Wir halten euch im angepinnten Beitrag auf dem Laufenden!
Mit vielen Grüßen
Euer ReportServer Team
Hi Team,
Just wanted to know , how to restrict file upload for certain types of files (.jsp,.html) in File System.
If you could help !!.
Offline
Hi GauravKumar,
you could use a net.datenwerke.gf.service.upload.hooks.FileUploadHandlerHook and implement the method public String uploadOccured(UploadedFile uploadedFile) in a script.
Either throw an exception if the file is not yet saved, or delete the file if the file is already saved in the file system.
Note that you should not only check the extension, but also the content type of the file.
Regards,
Eduardo
Offline