Please hold for the next available agent.
We’ll find a representative for you to chat with and keep you posted on your wait time.ĭid you know you can get answers to most of your Adobe-related questions at ? Visit.
(and please see my contents after the chat transcript)
#Hightail express not sending files download#
Suffice to say that I clearly detailed my "request" which was, "How, dear God, do I download multiple licensed Stock Images from my Libraries, because surely you don't mean to make me click one image at a time, wait, and repeat 100 times?!" Strangely, the FIRST part, where I describe my problem, does not appear. Surely, a prime candidate for the "You have got to be joking" and "It is not possible that there is a reason for this" files.įor humor, I copy below my just completed online chat. , but rather just /.Please allow me to join in. Again, you probably don't want it to start with. This will also cause the browser to make a new request to your server that you will also need to have your server respond to.
#Hightail express not sending files how to#
Inside the mainScript.js it also references image files, and I need help finding how to send and access these files tiles.src = "./Assets/Blocks/StoneBrickWall.png" It sends that one file as the http response and you can only send one http response per request. You can only send one file with res.sendFile(). I tried sending many files with res.sendFile Instead, start your static URLs with a leading / so they generate a constant URL request to your server no matter which page they are used in. Note: It is generally advisable not to use path relative URLs for your static resources because the browser will combine those path relative URLs with the path of the current web page and this will make it hard to use the same static resources in different web pages on your site. In Express, these requests for static resources are typically handled with express.static() where one line of middleware can handle the serving of many files within a directory hierarchy. The browser makes a separate http request for each resource in the file (scripts, images, CSS files, etc.) and your server needs to separately respond to each of those http requests and send the appropriate resource. Your server needs to handler that specific request for /mainScript.js and send the appropriate script file. If that URL is a top level URL, then the request will go to /mainScript.js. That http request will be to /mainScript.js where is the path of the current page URL. It will create a NEW http request to your server. When the browser gets to this in your html file: Inside the mainScript.js it also references image files, and I need help finding how to send and access these files( tiles.src = "./Assets/Blocks/StoneBrickWall.png" ). In the html file it references mainScript.js inside a script tag ( ). I tried sending many files with res.sendFile, but it only sends the first one. app.use(express.static("Online Game Files")) Res.sendFile("C:/Users/Kevin_Who/Desktop/Online Game Files/") res.sendFile("C:/Users/Kevin_Who/Desktop/Online Chat Game/mainScript.js") res.sendFile("C:/Users/Kevin_Who/Desktop/Online Chat Game/index.html") const app = require("express")() Ĭonst http = require("http").Server(app) Īpp.use("/styles", express.static(_dirname)) I want to be able to send many files, and if possible the a whole directory so that I can access it in my other js file that is getting called from an html file.