Skip to main content

Questions tagged [files]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
30 views

Image uploads - allow duplicates?

I'm allowing users to upload images. I store image information in a database and relate it to various resources on my site (posts, user avatars, comments etc.) I do not know which strategy to take. ...
panthro's user avatar
  • 203
0 votes
0 answers
11 views

Website files (documents) hosting for download [duplicate]

I have a website (on development) of learning resources (school exams and courses), which contains links to pdf docs (~ 2000) each user can read the document online or download it, having to start ...
Stalkium's user avatar
1 vote
2 answers
310 views

How can I check for coding errors in all the HTML files from my site?

I'm working dad's website which is OK but very badly coded. There are many errors like missing opening and closing tags, more brackets than is needed etc. I know in VS Code offers CTRL + SHIFT + M ...
user19571523's user avatar
2 votes
0 answers
50 views

Are the advantages to uploading files in a form one at a time rather than all when the form is submitted?

I have a form in my application where user can drop some files (images, csv, or other file types.) My current flow is: User drops the file I read the File and show an preview User Submit the form I ...
Crocsx's user avatar
  • 121
0 votes
2 answers
106 views

How Does Google Search Find Pages On Web Site

Google is finding pages on my site that are not listed in my site map. How does Google Search find a list of pages on a site to index?
glez's user avatar
  • 103
2 votes
2 answers
2k views

Are there any files or folders (apart from robots.txt and favicon.ico) which MUST go in the root directory according to their official spec?

I know that Robots Exclusion Protocol (robots.txt) Other similar .txt protocols (including sellers.json) favicon.ico must be placed in the root directory (according to their official spec), like ...
Rounin's user avatar
  • 2,365
1 vote
2 answers
297 views

How do I remove unneeded files from WordPress and Magento installations to stay below a limit on the number of files from my web host?

Using GoDaddy Ultimate Linux Plan, under which these are the features: Plan details: - Ultimate Hosting - 2 CPU - 1,024 MB RAM - 250,000 files - 140 entry processes Till now, there are 7 ...
Splendid Digital Solutions's user avatar
3 votes
1 answer
96 views

When splitting a folder with tens of thousands of documents into several folders, how can I handle broken links?

I have over 30,000 html files stored in www.example.com/docs, and these files are linked to each other. When it comes to displaying the content of those files on my site, I use the following code: ...
jcmaad's user avatar
  • 65
1 vote
0 answers
1k views

Apache FilesMatch to deny access to all ".config" files is working except for web.config

In my apache server I don't want to serve any files with extensions .config because it could contain potentially sensitive information. In my apache2.conf file I added: <FilesMatch "\.config"> ...
Ulf Honkanen's user avatar
1 vote
1 answer
2k views

How do I use Amazon s3 to host audio files linked from my website?

I wanna make a website to allow users to download audio files . Where can i store those audio file. I read about amazon s3 . What is it and how to use it to store my files ? How to serve those files ...
Barbell's user avatar
  • 111
3 votes
0 answers
780 views

Change default index.html page of a subdomain in directadmin

When I create a new subdomain in direct admin panel it gets a default placeholder page saying something between the lines "welcome, the page is under construction" or whatever. I've looked online ...
aMJay's user avatar
  • 163
1 vote
1 answer
10k views

what is the proper file permissions needed for certificate files

I am curious about what should be the file permission of the ssl certificate files. Because you really don't want anyone physically copying the server key, so why does the hosts make it readable to ...
drtechno's user avatar
  • 329
1 vote
1 answer
4k views

Microsoft Edge browser not correctly filtering PDF files in upload file dialog with Contact Form 7

I am using a Contact Form 7 which allows you to attach a PDF file to the message: https://www.publictalksoftware.co.uk/contact-form/ Chrome correctly shows a filter: Firefox correctly shows a ...
Andrew Truckle's user avatar
1 vote
1 answer
314 views

Do robots.txt and sitemap.xml need to be physical files? [closed]

I have both setup in my routes: Route::get('/robots.txt', function() { // robots.txt contents here }); Route::get('/sitemap.xml', function() { // sitemap.xml contents here }); I can access ...
ag16920's user avatar
  • 33
3 votes
2 answers
142 views

How can I name an image so that a) it's still unique b) descriptive

It's a given that a better name for a picture is "cat_eating_mouse.jpg" than "Aou7aIw=2.jpg". On my website I'm going to have thousands of pictures. It's not a big of a problem to name them manually, ...
Rakori's user avatar
  • 131
1 vote
1 answer
2k views

SEO impact of hosting static HTML on Amazon S3 vs. webserver

Scenario: Updating a static HTML file hosted on AWS S3 bucket. I read that a file (including static HTML) cannot be updated on AWS S3 bucket. Existing file needs to be deleted, new file with same ...
zennni's user avatar
  • 123
1 vote
0 answers
52 views

Moving files between directories automatically [closed]

I know what I am trying to achieve can be done via cron job, but I know nothing about coding this at all. I have a directory on a website that it updated with new files from an external source daily. ...
JS7319's user avatar
  • 31
0 votes
1 answer
32 views

Is it possible to host just a filesystem instead of an HTML site? [closed]

I know how to program in basic java. Before learning java, I studied HTML. Quite frankly, I forgot it, and it seems to me that it is going to be a hassle updating my HTML code every time I write an ...
ViceroyFaust's user avatar
1 vote
1 answer
676 views

What image compressor Google Pagespeed Insights uses? [duplicate]

It's very inefficient to compress all my site's images in Google's preferred compresion by running webpage after webpage in Google GPI, downloading all images and upload one by one to my CMS image ...
user avatar
0 votes
1 answer
1k views

Can files such as PDF and JPEG be stored in MySQL BLOBs to keep them off the webserver?

Situation: Users upload documents through web form and the documents are stored in MySQL (InnoDB) as MEDIUMBLOB. The rationality of this versus to store the original document on the webserver is the ...
Mr. Tanaka's user avatar
0 votes
1 answer
66 views

Directory Structure - Sub Directories or Basic Files

So I basically have my site folder structure like this. Images [folder] CSS [folder] JS [folder] Products [folder] --index.php Services [folder] --index.php Testimonials [folder] --...
dominic12345's user avatar
10 votes
2 answers
23k views

What is a recommended maximum number of files in a directory on your webserver?

I have directory that contains 400,000+ files. Potentially the directory could easily contain ~30,000,000 files. Is that a good idea or should I rather chop it up in smaller directories like this: /...
Louisa's user avatar
  • 203
0 votes
1 answer
354 views

Separate server for images?

Should I be using a separate server for hosting images that are created on a website? For example, my application creates images and currently stores them on the same server. I have around 200k+ ...
Brian G's user avatar
  • 35
3 votes
0 answers
67 views

What is the recommended method to analyse the structure of a HTML page/site? [closed]

Recently, I have had to analyse and upgrade a web application. I need to know the relationships and functions of each file including CSS and JS inside each page, as opposed to the whole website. ...
西門 正 Code Guy - JingCodeGuy's user avatar
4 votes
3 answers
1k views

File limit on shared hosting - does the issue still apply?

I've heard that shared hosting often imposes a limit on files per directory, though obviously this would be different per host. Generally speaking, is number of files still an issue on modern hosts? ...
Pipsqweek's user avatar
  • 141
1 vote
2 answers
644 views

best apache log file permissions on cpanel server

In an effort to protect my site from bad bots including ridiculous hackers that can login to the server, I want to secure access_log and error_log as much as possible without breaking apache or cpanel....
Mike -- No longer here's user avatar
5 votes
1 answer
3k views

what does license.txt belong to exactly?

Every now and then my server logs report that an IP is trying to look for license.txt on two domains. the IP belongs to amazonaws according to a whois lookup. Is this file supposed to be a new legal ...
Mike -- No longer here's user avatar
0 votes
1 answer
125 views

PDF file sizes when attached to a webpage article and hosted on own server

When you host a PDF on your own website and server, and then link to that PDF in an article, does the size of the PDF file matter? Or is the size only a factor when clicked, because of the time it ...
ja_him's user avatar
  • 165
2 votes
2 answers
2k views

How can I display the MD5 or SHA1 of files in a web server directory?

When you don't have an index.html, most web servers will show a list of files in the directory. Can I get preferably lighttpd (but Apache as a backup) to do show a file's MD5/SHA1 (along with standard ...
plonk420's user avatar
0 votes
0 answers
69 views

How to offer high quality image downloads without making google upset

My website consists of thousands of photos online that people can see. The photographer creates the photos using the highest quality settings possible and then uploads them. Then my php scripts use ...
Mike -- No longer here's user avatar
2 votes
2 answers
2k views

When and how do I remove temporary files on server left from abandoned forms?

I have a form on my site to submit posts, it features multiple file upload tool (Mini Ajax File Upload Form) which submits files to server as they are added (before actual post submission) and server ...
olegst's user avatar
  • 171
1 vote
1 answer
157 views

How to stop parallel downloads

In my server logs I noticed random sets of IP's originating from china that are downloading the same file of about 16MB every couple of hours, and every time the computer downloads it, it starts the ...
Mike -- No longer here's user avatar
1 vote
1 answer
72 views

Configure files to come from a central location unless that file has been customized for a specific site

I have an user A on a server, this users has a working set of scripts (html+js+css+everything else). I also have users B-[as much as I want]. I want those to use the exact same files, but if they have ...
Martijn's user avatar
  • 6,806
1 vote
2 answers
3k views

How to setup server, file permissions, and python script so that python script can create files and directories

I have a simple form that submits a select box. When the submit button is pressed I run a python script that needs to create a new directory and add files from an repository. Currently I cannot get ...
NDEthos's user avatar
  • 111
0 votes
1 answer
1k views

Grant Permission to File Folder

I am making a website, and I want the users to be able to access a file folder. I have a link to a folder. When I do this locally, all works fine. But when I upload it to my site, I get: Forbidden ...
Evorlor's user avatar
  • 214
1 vote
1 answer
2k views

cPanel ssh ftp application to transfer files to another server

I have to transfer ~6GB of data from my server to another which I don't own. On my server I have ssh access, and I have SFTP console client. The thing is, other server only supports plain old FTP and ...
Jinx's user avatar
  • 165
1 vote
1 answer
374 views

Files synced via dropbox cannot be served with IIS because of file permissions

I'm running into the problem of using Dropbox and IIS. I am using the Dropbox Folder Sync plugin to sync a folder outside the Dropbox folder. They are synced into my inetpub\root\downloads\ ...
DigitalAce7's user avatar
5 votes
7 answers
13k views

What should the Unix file system permissions be for PHP files under Apache?

What is the best practice for permissions with PHP files? When should they be writable, or executable? What owner is best? I'm using an Apache server.
Kirk Strobeck's user avatar