Hi,

I’m trying to upload a document to a custom table named RequestSysFile. Along with the document, I need to store an additional field called “Type of Document”, which comes from a field on the screen/form.

However, I’m not able to pass this additional data to the RequestSysFile table during the upload process. Could anyone guide me on how to include this extra field while uploading the file?

 

Like 0

Like

6 comments

I assume you're using crt.UploadFileRequest for the upload? I believe that request might return the uploaded file's Id, you could follow it up with an update to set the other field (I don't believe you can include it in the upload, but I've not tried that)

I have configure below on designer page .

Below is code behind. Help me where\how i will get the ID of uploaded File.  Help me in detailed way.

Also i tried with Business Process(insert signal on sysfile) , but on upload File, Screen details are not getting Saved. I am not able to get the document type data in Business process. 

khushbu kumari,

I think you'd need to do this via code in order to capture the request result and perform the update after

  I am trying to update the selected document type in Solicitud object.  but it is giving Internal server error. 

Below is the code i have written in client side code. Am i doing anything wrong here or any setup is missing to use model class. Note: i have already added “@creatio-devkit/common” to the modules page.

Show all comments

Hello!

 

Is there any possibility to change file size upload quota in the Application Hub in .net core version of creatio? In the .net framework there are a bindings.config configuration files, that allows to change binding quota, which works in IIS. 

 

But of course there is no such thing in kestrel, adding/changing any params in appsettings.json does not seem to help. Is there any option to install pretty big application (>100Mb) in .net core Creatio?

 

Like 0

Like

1 comments

Good day,


In the .NET Core version, we do not have separate settings for different services; instead, we have a single setting for the entire application. The default value is 30,000,000. You can modify this setting by adding a new row to the <appSettings> section in the Terrasoft.WebHost.dll.config file:

<add key="MaxRequestBodySizeBytes" value="100000000" />

This will change the maximum request body size to 100,000,000 bytes.

Thank you for reaching out!

Show all comments

Hi ,

 

What is the functionality behind the file size update in FileDetailV2. Where is exactly the uploaded file is stored and how can we access the file properties using webservice or esq?

Like 0

Like

1 comments

Hi Anupama,

 

From the client side the chain is as follows: upload method from the FileDetailV2 module then calls the upload method from the ConfigurationFileApi module. This ConfigurationFileApi module upload  method triggers the server side UploadFile method from the FileApiService class that uses the FileRepository class that uses the FileUploader class UploadFile method (that calls the UploadInternal method (with additional validations) and finally uses the Upload method to upload the file). So the upload on the server side is performed using the Upload method from the FileUploader class.

 

To locate the place where the file should be uploaded the FileUploader upload method uses the EntityFileLocator method that uses the fileUploadConfig (that is an object formed from the client-side when the ConfigurationFileApi module upload  method is called). For example if you are loading a file to the Contacts section the object to which the file will be saved is called ContactFile (and it can be also found in the database and configurations).

 

Best regards,

Oscar

Show all comments