Skip to main content
david--garcia
Level 10
Jun 1, 2021 4:17 PM UTC
Solved

File resources subfolders

Hi Community,

 

I am building a client's webapp whose assets file structure is as following, is it possible to create sub folders under "res" directory path? otherwise I need to dump everything in the resources folder and modify all the folder paths in the html pages and css files and javascript files, is this a limitation? what can be done?

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Manoj_Kumar
Manoj_KumarAccepted solution
Community Advisor
Jun 1, 2021 6:26 PM UTC

@david--garcia 

AFAIK, Uploading folders is not possible. You will have to manually upload the assets and replace the relative paths to the server path.

 

Thanks,

Manoj

Manoj  | https://themartech.pro

3 replies

Manoj_Kumar
Community Advisor
Manoj_KumarCommunity AdvisorAccepted solution
Community Advisor
Jun 1, 2021 6:26 PM UTC

@david--garcia 

AFAIK, Uploading folders is not possible. You will have to manually upload the assets and replace the relative paths to the server path.

 

Thanks,

Manoj

Translate
Manoj  | https://themartech.pro
CedricRey
Level 5
Jun 2, 2021 10:22 PM UTC

Hello,

Do you have access to the server ? I mean, not through the console, but with FTP access or a distant desktop ?

If so, you can create subfolders in the 'res' folder. These subfolders are accessible with the HTTP access to the 'res' folder.

 

Another way should be to upload a zip file of your folder with the console (with the xtk:fileRes) and try to unzip it with the ExecCommand function, but beware, this could be dangerous for your instance. I recommend you to try it in a development environement.

 

Translate
Sukrity_Wadhwa
Level 4
Jun 23, 2021 5:28 PM UTC

Hi @david--garcia,

Were any of the given solutions helpful to resolve your query? Do let us know.

Thanks!

Translate
Sukrity Wadhwa