Change uplod directory and protect anauthorized access to files

30 Aug '14, 02:10 AM
Forum Forum Starter - Level 1


I'm using a column to store a file. Webratio store the files into .../Tomcat/webapps/MyApp/upload

How can I change this default directory used by webratio to store upload files ?

I verified the url to this files is not protected. I was able to access the file using the url without be logged into application.

I need to protect this file from direct access without authentication.

How can protect this access ?



x 0
Answer Answer at this question and get points!
Forum Hero - Level 9

Hi Gilvan,

If you want change the path for the upload you can edit the file , you can see this file from WebRatio Explorer -> select your project -> right click -> WebRatio -> select Edit, you have to save this file into your project, in WebContent -> WEB-INF -> conf if you don't have this path you can select your project -> right click -> WebRatio -> Add WebContent folder

in the you have to edit the follow variables:

uploadDirectory=your-path for example:





If you want protect your BLOBs you can select your project properties go to the Security tab and check Protected BLOB, and you can check Digest with Session Id for use this url before expire session


x 1
Forum Starter - Level 1

Thanks Veronica for your answers.

Your help has been very important. Thank you!

x 0
Forum Starter - Level 1


How can I do to store this files on S3 (Amazon).

I would like to write a java class that control the persistence and read these files. 

Is possible to do this? 



x 0
Answer at this question and get points!

Related questions

404 on generated app page 502 proxy error-generate and run Acceder a diferentes site views/ Acces to diferents site views Adding and deleting from the database Agregar boton de cambio de contraseña en el login Alimentar graficas con base de datos Atributos Condicionales heredados Attribute comparison in a selector unit [beginner] - How to store and browse data collected with BPM app? Business object data Cancellare campi e tabelle dal database Cannot add a Database in the Domain Model Cannot connect to MySQL Cannot insert an entity in the database Cannot invoke method selectSingleNode() on null object Can't generate and run database or start tomcat server! Como mostrar una imagen en una lista o en la componente detalles? Como recuperar todos los atributos de una relacion N:N y insertar registros? Conexion a Oracle 12g Confirm dialog for mobile Connection refused. connect to Cloud Convert data in a Calculated attribute Convert selector component result to single value Creación DB Apache Derby - Modelado BPMN Criptare dati sensibili nel database Database connection, Host and Port number Database password encrypting Database properties Database resource consumption Database Tables Creation After Remote Deploy DB in Data Service Project Debug configuration Deploy in Cloud Amazon Beanstalk with Postgres Doanload previous version on webratio Dynamic data type Empty record mistakenly saved Error Cross-site request forbidden Error updating metadata process Error when updating to WR 7.2.3 EverLasting error "The TCP/IP connection to the host has failed. Connection refused" Execute truncate sql query file analysis then update MySQL database Find Model Problemas Foriegn key relationship Generate and Run button Generate and run locally on webratio professional edition. "Generation Error" with Generate and Run getting data from database Groovy and Database Guardar Saltos de LINEA Hide a form if condition if true Hola, qué sistema operativo me recomiendan instalar para ejecutar WebRatio How can I import a view in the Domain Model as an attribute of an Entity? How database or datamodel migration? How I can receive the primary key value after adding into database from OK Port. How to block empty string in Database How to create a new Web Project How to disble derby database? How to fix Network error(status 0) How to Run the Hello World on WebRatio Mobile Edition How to show certain values derived from relations in the domain model? How to use GoogleGeocoding Add-on i can't install mobile version on windows I can't install Webratio on my Desktop (Ubuntu 13.04 x64) I can't run any application with WebRatio (Table/View 'APP.POST' does not exist) Image in List field Insert data into database Installation with java 1.8 Installazione Macosx Is it possible to create a derived relationship between databases? java virtual machine error JDBC4 Postgresql Driver JDBC connection with mysql on mac Job not start correctly Kubuntu Installation Linux 32 installation zip MACOS 10.15 CATRALINA can't install Mapping database of the entity '...' is unspecified [MOBILE] Can't synchronize domain model with beck end DB Mostrar datos de diferentes tablas/ show dates from diferentes entities MS SQL server jdbc file multi selections field problem MySQL Driver jdbc No Apache Derby driver found No available activations found No available activations found No Database on Cloud account No database on my cloud account Passing JSON Object to Model Personalizzare lo stile di un progetto PostgreSQL Predefined values in database Problem accessing MySQL with WebRatio 6 Problema generazione codice Problema Grafo da una lista gerarchica Problema ¨HTTP Status 404" Problemas con el Operations View Delete PROBLEMAS PARA INICIALIZAR WEBRATIO Problem saving multi selection from input Problems to connect Sql Server DB from Webratio Problems with Database Metadata Problem to run an Application Problem Webratio Personal Edition Activation Problem with fields with accents used in attribute condition Problem with query unit! Problem with stored procedure Problem with the deletion of more than 50.000 records in a table publish web service for storing information in PostgreSQL DB following XSD Resource query a database Redirecting users to another site view Refresh and Synchronize DB Problems Relaciones Removing the User-Group-Module tagles Retrieve a value and add some value to it reverse engineering, problema con le relazioni di default Script Unit e Mysql Share database connection Sincronizar Proyectos en SVN Solve "Generation Error" with Generate and Run option Statistics Component for WebRatio > 7.2.0 Status ProcessInstance and activityInstance in spanish Sybase JConnect 4 JAR replace Sync DataService Project with Mobile Project Table 'freeapp43.profesion' doesn't exist Tarea de servicio no me evalua el valor Tomcat buttons Trying to Synchronize Domain Model Unable to execute the script java.lang.NullPointerException Unable to start WebRation, cannot locate its companion shared library Unknow property on Dynaclass after generation Unspecified BPM Engine Database Update mutiple records with the same value upload file and the move it to other location Urgent: Google Chrome download error, Unsure User Login Timestamp Username come chiave Using own User and Group tables Vista de diferentes Site Views WebRatio activation problem Web ratio data model Webratio doesn't recognize left-click WebRatio for Linux? WEBRATIO LINUX AT EXECUTION TIME WebRatio - list results of joined tables Web Ratio Mobile and Foreign Key WebRatio Mobile on Linux using wrong network interface. Web Ratio Mobile - Remote data mapping problem WebRatio no imports all attributes (fields) of a table WebRation on OS X Yosemite WebRatio Personal Free Edition activation problem WebRatio Platform 7.2 Community Cloud Edition WebRatio y Java 1.8 (o superior) where can I download version 7.1.2 personal? Where i can find the old webratio´s versions? Where is the ACME demo data stored?! Where should I install MAC version? White report XPCOM Error