Drupal: can I manually place files in my "files" folder? - drupal

I'm adding some pictures to my Drupal files folder.
I was wondering if Drupal remove the files not connected to any node as scheduling routine, from the files folder.
In other terms, I was wondering if I can place files into the "files" folder or if these can be deleted by the system
thanks

If you place a file with fx FTP Drupal wont delete them, it will only delete files it know about that are labeled temporary in the file system, like images generated by the ImageCache module, or js/css compressions.

Related

Drupal Site configuration issues

Good day every one,
I am new in DRUPAL.
I am having problem with the drupal site.
I got the repository for the drupal site. I have successfully clone it and got every things and the database. I have uploaded the database to the local host server.
Now, I can see that initially the directory is like this
C:\wamp\www\test\site\docroot\sites\default\
Then when i first open the site through local host the directory automatically becomes like this
C:\wamp\www\test\site\docroot\sites\default\file
The "file" directory contains the empty folder of css, images etc/
which I believe is downloaded from the database for the first time.
The site is giving many console error like missing images etc.
Instead of having the empty folder in file directory there must be images and css files and everything I do not know what is wrong becs the folder should not be empty there must be files and and image sand css files and should be downloaded from the database when I first open the site.
Please help me to locate the problem.
Thank you very much.
Usually, you will put on git drupal core, modules and theme files.., basically everything except the files uploaded by user (admin). Those files are usually located at:
/sites/default/files
So, since they are not on git repo you need to copy them to your local environment from the working site (i.e. over (S)FTP).
If your "file" is not "files" dir I'm talking about then it's something specific to your site - don't know nothing about it.

Files for FTP in cms Drupal

How can I find files for FTP in cms Drupal,where I can edit the code? There are a lot of folders and files, how to understand them? How or where can I see the required file pathes?
You should put your files in /sites/all dir.
Your theme(s) should be in /sites/all/themes and modules in /sites/all/modules, libraries in /sites/all/libraries. Don't change files out of /sites/all. By "your" I mean also on themes and modules you download/buy.

Upload all wordpress file together using filezilla, without skipping any one of the file

I am trying to upload my wordpress website to my 000webhost.com hosted website using filezilla.
Problem : After uploading the wordpress folder completely, filezilla is skipping many of the crucial files is also not storing the failed files under "FAILED TRANSFER"
Is there any setting in filezilla such that it does not skip any file and tranfers all the files within folder's recursively?
FileZilla's default may be set to skip the file if a file of the same name already exists on the server (upload folder).
You can change this behaviour under the Transfer menu options, select the Default File Exists Action, and a dialog pops up, there are a number of choices of what to do by default, I would suggest amending the Uploads section to be Overwrite file if source file newer.

move dynamically uploaded files in asp

I am having a application that uploads files according to the user input..i just want to move that particular file to moved to another folder..
Now i am able to move the files to the destination folder..but it moves all the files which is already there in the folder..
i am creating a folder dynamically while uploading the files..and i need that file to be moved to that created folder...
I need to move only the uploaded file during run time...
E:\Export Documents - Copy\Uploads this path to C:\inetpub\wwwroot
this is my code
Set oFS = Server.CreateObject("Scripting.FileSystemObject")
strDir = "c:\inetpub\wwwroot\" & fldr
oFS.CopyFile "E:\Export Documents - Copy\Uploads\*.jpg", "c:\inetpub\wwwroot\" & fldr
What you probably want to do is identify the file you have just uploaded and then move that. If you are already creating a folder to store the files in in inetpub, you might as well do the same in Uploads, and then just move that folder.
You will probably find it helpful to use fileSystemObject.MoveFolder instead of .CopyFile so that your Uploads folder does not fill up.
If you want some help with how to do that, post the code you are using to upload your file.
For working with the FileSystemObject, this is a useful reference
On another note, is it really wise to move files from Uploads into wwwroot? A malicious user could do some damage in there.

How to prevent an html-template sub-folder from being refreshed during build?

I placed my AMFPHP folder inside my htmltemplate project folder, but now everytime i build it wants to 'refresh' the folder which takes forever. Is there a way to set it so that folder does not refresh each time? I put the AMFPHP folder in there so I can have a unique copy for my debug builds and leave the production build one alone.
I'm not sure what you mean by 'refresh'
The HTML-Template folder is just a template. During build all files/folders in the template folder are copied to the bin-debug (or bin-release) folder. Is this 'copy' the refresh your talking about?
If you don't want these files copied over every time; just put them in your bin-debug / bin-release folders directly instead of the template folder.
If your AMFPHP folder contains config files; and nothing else, then you probably don't need those files in the html-template, bin-debug, or bin-release folders. You can compile them into the SWF using the services compiler argument.
There is also a setting in the Flash Builder Project Properties that may help. Under Flex Compiler, uncheck 'copy non-embedded files to output folder'. However, I think this relates to files int he source directory; not the HTML Template directory.
Does any of this help?

Resources