Uploading Images/Creating Directories
I have only been developing small sites using asp and Access database. I want to advance my skills and develop a large site. Basically, I need direction in relation to having a user set up an acct., and once set up, being able to upload images. FrontPage (dare I say it) has always enabled me to allow visitors to upload one image at a time, and then only to a specific directory. What I want is the ability to have someone upload a specified amount of images to a directory that is created when they opened their account. ie., /tom/images If anyone knows of of good tutorials on this, I sure would appreciate it. I also want the ability to check images file size and dimesions, and resize or reject if neccessary. Can I learn how to do this w/out buying some program online.
View Replies
ADVERTISEMENT
I am trying to set SA-Fileup to filter the files that are uploaded based on the name of file selected in the form. I am able to get it to work on Filetype, but I need it to do it on Filename is not Filetype. where I can find something on this?
View Replies
View Related
I have an include file which contains some images. If I use this include in a sub directory, the path is obveously wrong. How can I sort this problem - is it best to just use absolute paths rather than relative?
View Replies
View Related
I'm creating a site which will have the home page at the root level, but all of the sub pages in sub directories:
root/
-homepage.asp
-subdirectory/
subpage.asp
-images/
logo.gif
-includes/
header.asp
Each page of the site will have the include <!--#include virtual="/includes/header.asp" -->
header.asp is a table with our company logo, logo.gif. The problem I'm having is that subpage.asp does not display logo.gif because the path in the include is only correct at the root level.
I don't want to create multiple includes. Is there another way to make this work that I'm missing? Thanks!
View Replies
View Related
Is it possible to create a directory in ASP? If possible, how?
View Replies
View Related
My image is in local directory. Using "FILE" input type, I am getting the path of the image. How to upload this image to my server using ASP?
View Replies
View Related
I would like to know if there is a way to upload an image and text into an Access database using asp. I have a web site hosted on a web server which doesn't accept to install components. If anybody knows some sample code (in case this is possible), a link or some code would be welcome.
View Replies
View Related
My database only has an image field (sql2005).
All the tutorials I find have the databse with additional fields like Filename, FileSize, FileData, FileID, Contenttype, etc.
I want to upload into ONLY that image field because my windows app accesses the same database, and it doesn't use those additional fields. does someone out there have a tutorial or some code example or SOMETHING related to uploading a file into a SQL database?
View Replies
View Related
I've been looking for ages for decent serverside (or clientside I suppose,) software for uploading images. I need the software to make thumbnails of the images too.
I'm making a property website product and I need to make it easy for the user to upload pics by browsing to them and selecting them. When he/she adds the info and photos the thumbnails will be made automatically ....
View Replies
View Related
i want to give a option to client that they can upload there logo/images. how i can upload the images and when some upload the images i want to rename the images as the user name of the client or some autonumber. how i can rename the images.
View Replies
View Related
Does anyone have some code examples to upload image with ASP. My App is using ASP with VBScript.
View Replies
View Related
I am creating a site and want the users to be able to upload images from their computers either onto the server or into the database using a BLOB field. The question is, which of these is the best. The basic use of the picture (jpg or gif) would be similar to ebay or an Avatar on a forum. Would it be better to store the picture it the database or the link?
View Replies
View Related
how to upload images to the server.
View Replies
View Related
I'm trying to improve the way that our press team update images on our homepage. At present the headline link and text is inserted using a submission form that writes to a database. However the accompanying image is inserted by placing the image on a blank web page (headline.asp) and using an include on the homepage to insert it into the appropriate cell next to the headline text.
I would like to add an 'upload image' function to the news submission form that would allow the press team to browse to the image file and insert this into the same location. The upload function would therefore have to automatically send the image to headline.asp.
View Replies
View Related
Other than creating a custom component or purchasing one, isn't there
any other way by which users can upload images/files from their local
machines/hard disks to a remote server? Doesn't ASP have any in-built
component to do so?
If that's indeed the case, can someone suggest any free components
(not trial ones) which can be used to upload images/files from users'
local machines/hard disks to a server?
View Replies
View Related
I am working on a gallery and am uploading pics. Is there any way of resizing the resizing image eg make a thunbnail from the image been upload. Also can I rename the image so that images aren't overwritten.
below is the code I am using.....
View Replies
View Related
How can I upload & insert 2 images to the server using asp, I used this code for one single image....I need to know for 2 images in order to insert them in database
The following is the code :
Set Upload = Server.CreateObject("Persits.Upload")
Upload.IgnoreNoPost = True
Upload.LogonUser "","maf","fam@dmin"
Upload.Save server.mappath("/uaeagricent/AgriNews/Newsimg/")
session("path")=""
For Each File in Upload.Files
session("path")=file.path
Next....
View Replies
View Related
I would like to know ho to validate a file name when uploading via asp. I need to upload 2 images and the file names must be the same...
1) browse for 1st image.
2) image path and file name appears in text box i.e. IMAGE1.JPG
3) browse for 2nd image.
4) 2nd image file name MUST match the file name in the text box of 1st image
i.e IMAGE1.JPG.
Hope this is clear... How can this be done.
View Replies
View Related
I want to allow my visitors to upload images, but with restrictions. For example, I want to display an error when the image is bigger than 50x50.
So my question is, how can I check the width and length of the image that is getting uploaded?
Also, I'd like to store the images in my database (MS Access and MySQL). Can someone give me clues or code on how to do this?
View Replies
View Related
I am trying to create a computer management form/web application. I am not a good programmer. I use sharepoint at work to do most of the tasks which are fairly automated.
Now the computer management form is designed this way: Code:
View Replies
View Related
How can I accomplish the following:
I want to upload image files (jpg) into a sub-directory of a website root directory using a web interface allowing the user to browse their drive and select the jpg file to upload.
Also, is there a way to parse the information from the jpg file and insert the information into a SQL database table which would hold the file name, image height, and image width?
I'm new to handling binary files, so I'm not sure how to accomplish this?
View Replies
View Related
I'm building a simple image gallery. When I upload the photos, they all have the same filename except for an incremental number. For example:
photo_of_event_1.jpg
photo_of_event_2.jpg
photo_of_event_3.jpg
photo_of_event_4.jpg
I have a SQL table where enter in the filename "suffix" ("photo_of_event_") and then I enter a start number (1) and an ending number (4).
So, each gallery only has one record entry.
Now, I need some advise on how to take this record and generate a page that displays all three photos.
Is there a SQL statement that would generate an incrimental list of number (1,2,3,4 in this example?).
View Replies
View Related
I know how to copy files from one location to another but how would I go
about copying a file from one directory into serveral - or actually all
subdirectories in a single action? Some kind of loop
Basically I want to be able to enter a filename into a text field and click
submit which would then copy the named file (which resides in the root
directory) into every subdirectory under the root (1 level only). Would be
helpful to be able to specify mutliple files to be copied at once.
View Replies
View Related
I found this script on the web that I've adapated a little to see the files I put into a directory. However it doesn't see any sub directories. Does anyone have any idea how i can point to a directory and list everything, including the directories? Code:
View Replies
View Related
It's funny that this has not been invented yet, or has it?:
You store your DB outside your default website.
It is accessed only through your ASP code and a ODBC-connection.
This way your DB is not obtainable for the web user.
Why doesn't Any One create a connection corresponding to ODBC, lets call it
FileConnect that in the same way allows us, in a web site, to have directories
and files that are really hidden?
View Replies
View Related
In php you can have a script like: http://localhost/page/parameter1/parameter2
where page is acually a php script and the script gets the parameters in $PATH_INFO
I need something similar in asp. If possible without modifying any settings on IIS.
Here is a tutorial on how to do it in php. http://www.zend.com/zend/spotlight/searchengine.php
View Replies
View Related
i have a subdomain on my works server that i use to store different stuff on, like different projects that i'm working on. They are all set up in their own folders, for example, sub.blah.com/project1, sub.blah.com/project2 etc etc. (all the folders have different names).
What i want to do is to create an index page on sub.blah.com that will list out all of the folders. I dont have any access to the server workings so this all has to be done with a script.
View Replies
View Related
My global.asa maintains some stats for me. However when I put part of my site in a sub-directory it appears to run the global.asa file from the sub-directory when I am accessing content in that sub-directory. This makes all the paths specified in global.asa wrong.
I can understand that it runs, since it is application driven and all sub-directories will be part of the same app, but I can't understand it running in a different directory to where is resides.
View Replies
View Related
I have several files and directories and I want to read the contents, seperate them into fields and INSERT them into a database.
The structure is as follows:
D:DISCSSC8849SC8849-01 Artistname - title.zip
D:DISCSSC8849SC8849-02 Artistname - title.zip
D:DISCSLG114LG114-01 Artistname - title.zip
I want to read every file in D:DISCS, seperate the filenames into: Disk Number, Track Number, Artist and Title - drop the .zip and the hyphens entirely and insert the data as a record in a database.
View Replies
View Related
I'm including a template on all pages in a site. In the template I have a menu. What I'd like is to have a different menu displayed if I'm in a different directory. Something along the lines of:
If path is /mainsite Then
Regular Menu
If path is /admin Then
Admin Menu
Just not sure about how to go about getting there. My first thought was to use the PATH_INFO server variable, but that returns the page name too. Any suggestions?
View Replies
View Related
I'm having a problem with cookies in a virtual directory,
A cookie is created by an ASP application in the root folder i.e.
http://xxx.yyy.com
I'm unable to read this cookie in a virtual directory i.e.
https://xxx.yyy.com/mydirectory in a Visual Studio 2005 application.
If I create the cookie in my virtual directory the application in the root directory reads the cookie without any issues.
View Replies
View Related
Is there any way to setup a multiple password page where if user1 logs in it will take him to dir1 and if user2 logs in it will take him to dir2 and so on. Basically, we need a page that checks to see if the user name and password exists and then redirects accordingly.
View Replies
View Related
I have managed to cobble this together And now I have got stuck with modifying it.
What it does is provide an option box that allows you to choose any of the folders in a directory. The files in that directory are then listed below the option box. (the file structure dictates the order/grouping of the files)
It change the path-to-directory with a manual option. Code:
View Replies
View Related