Gossamer Forum
Home : Products : DBMan : Customization :

add file uploading later?

Quote Reply
add file uploading later?
If I start a database now, will I be able to add the option of the file uploading mod later on? Would I have to do something with every record...?
Quote Reply
Re: add file uploading later? In reply to
Well, you would have to add a field in the configuration file. There is an upgrade.cgi file available through LINKS (which I believe could be ported to DBMAN) that will automatically create a field in your database after you add a field in your configuration file (default.cfg).

But if that doesn't work, then you will have to manually via a text editor add the | for the new upload field or modify every record via a web browser.

To be short, yes, you could add the upload later, but it would be easier to add it sooner with a small number of records rather than risking the intensive task of modifying your whole database file later.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited August 03, 1999).]
Quote Reply
Re: add file uploading later? In reply to
If you use my file upload mod, you won't have to add a field. My mod changes the name of the file to match the $db_key value of the record, so that you don't have to specify the filename in a field.

In short, you could add it at any time without having to change your database.


------------------
JPD





Quote Reply
Re: add file uploading later? In reply to
Yep. That's where they are. I have hesitated to put a link on my pages for two reasons. A lot of people have had trouble with it and I'd sorta like to keep track (as much as possible without having to send email to each person) of who has it. The other reason is that I'm in the process of upgrading my pages and I didn't want to work a lot on pages that I'm going to be deleting soon. (Anyway I hope it's soon! Smile )


------------------
JPD





Quote Reply
Re: add file uploading later? In reply to
Hi

What about the password lookup mod? Do you have to add it before the database starts?
Quote Reply
Re: add file uploading later? In reply to
Yes. You have to add the password lookup mod before the database goes "live." Otherwise there will be some folks without email addresses in the password file and some with email addresses.


------------------
JPD





Quote Reply
Re: add file uploading later? In reply to
Yep...JPDeni is correct about the new password lookup. I installed it after I created a few users (Thank goodness). I had to change permissions in the default.cfg to allow everyone who signed up to have administrative permissions. Then I created a new account. After that I deleted all the other users and reset the permissions in the default.cfg file for registered users to have their appropriate permissions without admin.

It was kind of a headache even with a small number of dummy users.

Hope my experience helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Quote Reply
Re: add file uploading later? In reply to
Ok, thanks.

JPDeni: Is the latest version of your upload mod @:
http://www.jpdeni.com/dbman/file-upload.txt
http://www.jpdeni.com/dbman/file-upload_cgi.txt
I couldn't find any direct link from your webpage and just found these in earlier posts.
Quote Reply
Re: add file uploading later? In reply to
JPDeni, a question about your upload mod:
Do you know of a place that has it up where I can see an example?
When people upload the file, how do they see it? Does it create a link to the pic in their record?
Quote Reply
Re: add file uploading later? In reply to
how many different uploading mods are there?
Quote Reply
Re: add file uploading later? In reply to
by using the Upload mod, how many files can I upload? I may need the user to upload more than 3 files
Quote Reply
Re: add file uploading later? In reply to
The file upload mod I have written allows one file per record, and the file is renamed to match the key value of the record. If I ever get a chance to study the code, I may be able to figure out how to do it a different way, but I'm not sure how.


------------------
JPD