473,883 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

uploading several docs at once

I have a meetings section I'm developing on our intranet. Using PHP/MySQL.
Meeting info and Meeting docs reside on 2 related tables in the db. Users
may want to upload anywhere from 1 to 10 or more documents to share/use
during a meeting presentation. What would be the most efficient way to
approach this? This is the logic I'm currently considering:

Page 1: Meeting Information input with link to a document upload page (this
page already exists as a link for 'New Meeting')
Page 2: Document upload page -
1. should I pass the mysql_insert_id () from the meeting ID on the
previous page or
2. provide a select box that lists last inserted meeting on top as well
as other meetings?
I'm considering this because a manager may want to upload a doc for
a meeting that they posted in the db earlier, but never got around to
uploading docs.
However, perhaps this should be an entirely different page to
upload docs for already posted meetings?
3. should this page have several upload file inputs? If so, how many is
reasonable?
Page 3: Upload confirmation with a link ("add another doc for this meeting")
that reloads the page as a sticky form if not enough links

Another possibility is to have it all on one page, but I can see that this
could get messy. I'm still new to PHP/MySQL so I have a hard time following
code that is used in only one page, but revealing only the portion
applicable. (i.e. if(submitted){d o this} else {do that}. Seems like
sometimes it wants to show everything anyway.

Just fishing for ideas here...

Thanks,
Chris
Aug 2 '06 #1
5 2737
Well, I guess my question sounds stupid because no one answered it. I'm
fairly new to this, I do understand uploading multiple files, my concern is
getting them input into the database properly. I have no one to consult or
brainstorm with here (I am an intern teaching myself php/mysql). Although
there are many references out there - books, online, newsgroups, etc., - I
have seen several approaches. I'm on a tight deadline to complete this
project, so to save time re-writing code, I would just like some advice on
the direction I should go with this - am I on the right track? Is there
already a concept out there so I don't have to re-invent the wheel?

Thanks,
Chris

"Chris" <de************ @centurytel.net wrote in message
news:ea******** *@news01.intel. com...
>I have a meetings section I'm developing on our intranet. Using PHP/MySQL.
Meeting info and Meeting docs reside on 2 related tables in the db. Users
may want to upload anywhere from 1 to 10 or more documents to share/use
during a meeting presentation. What would be the most efficient way to
approach this? This is the logic I'm currently considering:

Page 1: Meeting Information input with link to a document upload page
(this page already exists as a link for 'New Meeting')
Page 2: Document upload page -
1. should I pass the mysql_insert_id () from the meeting ID on the
previous page or
2. provide a select box that lists last inserted meeting on top as well
as other meetings?
I'm considering this because a manager may want to upload a doc for
a meeting that they posted in the db earlier, but never got around to
uploading docs.
However, perhaps this should be an entirely different page to
upload docs for already posted meetings?
3. should this page have several upload file inputs? If so, how many
is reasonable?
Page 3: Upload confirmation with a link ("add another doc for this
meeting") that reloads the page as a sticky form if not enough links

Another possibility is to have it all on one page, but I can see that this
could get messy. I'm still new to PHP/MySQL so I have a hard time
following code that is used in only one page, but revealing only the
portion applicable. (i.e. if(submitted){d o this} else {do that}. Seems
like sometimes it wants to show everything anyway.

Just fishing for ideas here...

Thanks,
Chris

Aug 7 '06 #2
>
"Chris" <de************ @centurytel.net wrote in message
news:ea******** *@news01.intel. com...
I have a meetings section I'm developing on our intranet. Using PHP/MySQL.
Meeting info and Meeting docs reside on 2 related tables in the db. Users
may want to upload anywhere from 1 to 10 or more documents to share/use
during a meeting presentation. What would be the most efficient way to
approach this? This is the logic I'm currently considering:

Page 1: Meeting Information input with link to a document upload page
(this page already exists as a link for 'New Meeting')
Page 2: Document upload page -
1. should I pass the mysql_insert_id () from the meeting ID on the
previous page or
2. provide a select box that lists last inserted meeting on top as well
as other meetings?
I'm considering this because a manager may want to upload a doc for
a meeting that they posted in the db earlier, but never got around to
uploading docs.
However, perhaps this should be an entirely different page to
upload docs for already posted meetings?
3. should this page have several upload file inputs? If so, how many
is reasonable?
Page 3: Upload confirmation with a link ("add another doc for this
meeting") that reloads the page as a sticky form if not enough links

Another possibility is to have it all on one page, but I can see that this
could get messy. I'm still new to PHP/MySQL so I have a hard time
following code that is used in only one page, but revealing only the
portion applicable. (i.e. if(submitted){d o this} else {do that}. Seems
like sometimes it wants to show everything anyway.

Just fishing for ideas here...

Thanks,
Chris
Chris wrote:
Well, I guess my question sounds stupid because no one answered it. I'm
fairly new to this, I do understand uploading multiple files, my concern is
getting them input into the database properly.
Sorry you didn't get a reply, it didn't sound stupid, maybe its just
that questions with an error message and a some code to debug are
quicker and easier to answer than brainstorming

Anyway I've got a coffee and some time free.
I'm on a tight deadline to complete this
project, so to save time re-writing code, I would just like some advice on
the direction I should go with this - am I on the right track?
Yes I think you are.
Is there
already a concept out there so I don't have to re-invent the wheel?
Your plan to have seperate pages for adding meetings/uploading docs is
good and I'd do it that way too.

This way, like you said, the document upload page can be used when a
new meeting is added and also later when meetings have been added
already.

So.. have one document upload page and have two pages which will direct
the user (and submit a meeting id) to the documents upload page.

One way is when a new meeting is added - pass the insert_id to the
document upload page with something like '<a
href="/doc_upload?meet _id=' .mysql_insert_i d() . '>'

The other way is after a meeting has already been added - have a
seperate 'choose meeting' page with just a select box of recently added
meetings which submits a meeting id to the document upload page. If the
<form method="get" action="doc_upl oad"and the select name is
'meet_id' then one document upload page can be used for both ways.
Another possibility is to have it all on one page, but I can see that this
could get messy.
Yup, makes an editor with syntax highlighting look like a plate by
damien hirst

3. should this page have several upload file inputs? If so, how many
is reasonable?
Not sure, now ask how long some string is! (Just kidding) I guess a few
isn't enough but dozens is too many.
Page 3: Upload confirmation with a link ("add another doc for this
meeting") that reloads the page as a sticky form if not enough links
I've seen both and both work fine.

For example the file upload page in Hotmail has one file input with two
submit buttons, one button labelled 'Ok upload file', the other button
labelled 'Ok and upload another' ...In a cpanel clone I've seen the
multiple file inputs method with one button labelled 'Upload files'. Go
with whichever method you think is easiest or best.

Personally I found the multiple file input method marginally more
usable and its probably easier for you because you could cut n paste
the code from example 38-3 on
http://www.php.net/manual/en/features.file-upload.php

Cheers
Tim Hunt

Aug 8 '06 #3
Hi Tim, thank you so much for getting back to me.

I've reviewed a few multiple file upload tutorials/guidelines, and have had
the best luck with the one I have posted below - I made adjustments as
needed.
The create meeting form works great - and the processing form (see below)
inputs all data as defined in the meetings table. It also recognizes the
$mtgid because it is printed out as part of the confirmation to the user.
It looks to see if someone checked the upload docs checkbox, so there will
be a heading with instructions to upload.

It is set up to get the number of uploads from a textbox on the file
submission form, then it creates all the input features for the number of
docs the user wants to upload. - becomes $num_files, but have hard coded it
for testing the file upload on the snippet. I get my confirmation printout,
but it never does insert the data into the database, nor does it pick up the
value of '$mtgid = mysql_insert_id ()' which was created from submitting the
original form for listing a meeting in a meetings table. Have tried several
things to pass the value but haven't come up with the right one yet - it
would be the same for each upload as each doc will apply to the same
meeting.

I've been working on this particular document for 2 whole days - I think my
brain and my eyes just aren't in sync anymore.

Can you give this a look and see if anything jumps out as being so wrong
that the processing just won't work?
------------------------------
<?php
//set variables for meeting input:
$date = $_POST['mtgdate'];
$team = $_POST['team'];
$project = $_POST['project'];
$subject = $_POST['subject'];

if (isset($_POST['numfiles'])){
$num_files = $_POST['numfiles'];
} else {
$num_files = 1;
}

//check that form has been submitted
if (isset($_POST['addmeeting'])) { //begin check for submission

//insert data into meetings table
mysql_select_db ($database_webs ite, $website);
$doc_insert = "INSERT INTO meetings VALUES ('', '$date', '$team',
'$subject', '$project')";

//Confirm if data inserted

$success = mysql_query($do c_insert); //create variable to hold insert
values
$mtgid = mysql_insert_id (); //create variable for last inserted id

//check if meeting input is successful
if ($success) {
echo "Your ". $date . " meeting has been added to the database. <br />Your
meeting number is " .$mtgid .",
<br />keep this number handy for future reference. <br /><a
href='new.php'> Add another meeting.</a>";
} else {
echo "There was an error adding your meeting to the database, please try
again.";
}//end check if meeting successful -

if (isset($_POST['upload'])){ //check if file upload request

echo "Please use the form below to upload your meeting documents.<br />";

} //end check for upload request
}//end check if meeting added

---NOTE: works great up to here----

//upload directory.
$upload_dir = "docs/";
//number of files to upload.
$num_files = 2;

//check if the directory exists or not.
if (!is_dir("$uplo ad_dir")) {
die ("Error: The directory <b>($upload_dir )</bdoesn't exist");
}
//check if the directory is writable.
if (!is_writeable( "$upload_dir")) {
die ("Error: The directory <b>($upload_dir )</bis NOT writable,
Please CHMOD (777)");
}

//if the form has been submitted, then do the upload process
if (isset($_POST['upload_form'])){

echo "<h3>Upload results:</h3>";

//do a loop for uploading files based on ($num_files) number of
files.
for ($i = 1; $i <= $num_files; $i++) {

//define variables to hold the values.
$new_file = $_FILES['file'.$i];
$file_name = $new_file['name'];
//to remove spaces from file name we have to replace it with "_".
$file_name = str_replace(' ', '_', $file_name);
$file_tmp = $new_file['tmp_name'];
$file_size = $new_file['size'];
$title = $_POST['title'.$i];
$desc = $_POST['description'.$ i];
#-----------------------------------------------------------#
# this code will check if the files was selected or not. #
#-----------------------------------------------------------#

if (!is_uploaded_f ile($file_tmp)) {
//print error message and file number.
echo "File $i: Not selected.<br>";
}else{
#-----------------------------------------------------------#
# this code check if file is Already EXISTS.
#
#-----------------------------------------------------------#

if(file_exists( $upload_dir.$fi le_name)){
echo "File $i: ($file_name) already
exists.<br>";
}else{
#-----------------------------------------------------------#
# this function will upload the files.
:) ;) cool #
#-----------------------------------------------------------#
if
(move_uploaded_ file($file_tmp, $upload_dir.$fi le_name)) {
echo "File $i: ($file_name)
Uploaded.<br>";
echo "File $i: ($title)<br>";
echo "File $i: ($desc)<br>";
//enter file data into database
mysql_select_db ($database_webs ite, $website);
$doc_insert = "INSERT INTO meeting_docs
VALUES ('', '$file_name', '$title', '$desc', '$mtgid')";
$success = mysql_query($do c_insert);
//create variable to hold insert values

}else{
echo "File $i: Failed to
upload.<br>";
}#end of (move_uploaded_ file).

}#end of (file_exists).

}#end of (!is_uploaded_f ile).

}#end of (for loop).
# print back button.
echo "»<a href=\"$_SERVER[PHP_SELF]\">add more documents</a>";
////////////////////////////////////////////////////////////////////////////////
//else if the form isn't submitted then show it.
}else{ ?>
<h3>Select files to upload!</h3>
Max file size = <?php $size_bytes / 1024 ?KB
<form method="post" action="<?php $_SERVER['PHP_SELF']?>"
enctype="multip art/form-data">
<?php // show the file input field based on($num_files).
for ($i = 1; $i <= $num_files; $i++) { ?>
File <?php echo $i ?>: <input type="file" name="file<?php
echo $i ?>"/><br />
<strong>Documen t Title:</strong>(Require d - Max 50 characters):
<input type="text" size="30" maxlength="50" name="title<?ph p echo $i
?>"/><br />
<strong>Descrip tion:</strong>(Require d - Max 150 characters):
<textarea cols="20\" rows="2" name="descripti on<?php echo $i
?>"/></textarea><br />
<?php } ?>
<input type="hidden" name="MAX_FILE_ SIZE" value="<?php echo $size_bytes
?>">
<input type="submit" name="upload_fo rm" value="Upload Now!">
</form>
<? } //end check for upload submitted and form

//print copyright ;-)
echo"<p align=\"right\" ><br>Script by: <a
href=\"http://www.maaking.com \">maaking.c om</a></p>";

--------------------------------------------------------------
"Tim Hunt" <ti********@gma il.comwrote in message
news:11******** **************@ p79g2000cwp.goo glegroups.com.. .
>Sorry you didn't get a reply, it didn't sound stupid, maybe its just
that questions with an error message and a some code to debug are
quicker and easier to answer than brainstorming

Anyway I've got a coffee and some time free.
> I'm on a tight deadline to complete this
project, so to save time re-writing code, I would just like some advice
on
the direction I should go with this - am I on the right track?

Yes I think you are.
>Is there
already a concept out there so I don't have to re-invent the wheel?

Your plan to have seperate pages for adding meetings/uploading docs is
good and I'd do it that way too.

This way, like you said, the document upload page can be used when a
new meeting is added and also later when meetings have been added
already.

So.. have one document upload page and have two pages which will direct
the user (and submit a meeting id) to the documents upload page.

One way is when a new meeting is added - pass the insert_id to the
document upload page with something like '<a
href="/doc_upload?meet _id=' .mysql_insert_i d() . '>'

The other way is after a meeting has already been added - have a
seperate 'choose meeting' page with just a select box of recently added
meetings which submits a meeting id to the document upload page. If the
<form method="get" action="doc_upl oad"and the select name is
'meet_id' then one document upload page can be used for both ways.
Another possibility is to have it all on one page, but I can see that
this
could get messy.

Yup, makes an editor with syntax highlighting look like a plate by
damien hirst

3. should this page have several upload file inputs? If so, how many
is reasonable?

Not sure, now ask how long some string is! (Just kidding) I guess a few
isn't enough but dozens is too many.
Page 3: Upload confirmation with a link ("add another doc for this
meeting") that reloads the page as a sticky form if not enough links

I've seen both and both work fine.

For example the file upload page in Hotmail has one file input with two
submit buttons, one button labelled 'Ok upload file', the other button
labelled 'Ok and upload another' ...In a cpanel clone I've seen the
multiple file inputs method with one button labelled 'Upload files'. Go
with whichever method you think is easiest or best.

Personally I found the multiple file input method marginally more
usable and its probably easier for you because you could cut n paste
the code from example 38-3 on
http://www.php.net/manual/en/features.file-upload.php

Cheers
Tim Hunt

Aug 8 '06 #4

Chris wrote:
Hi Tim, thank you so much for getting back to me.

I've reviewed a few multiple file upload tutorials/guidelines, and have had
the best luck with the one I have posted below - I made adjustments as
needed.
The create meeting form works great - and the processing form (see below)
inputs all data as defined in the meetings table. It also recognizes the
$mtgid because it is printed out as part of the confirmation to the user.
It looks to see if someone checked the upload docs checkbox, so there will
be a heading with instructions to upload.
if
(move_uploaded_ file($file_tmp, $upload_dir.$fi le_name)) {
echo "File $i: ($file_name)
Uploaded.<br>";
echo "File $i: ($title)<br>";
echo "File $i: ($desc)<br>";
//enter file data into database
mysql_select_db ($database_webs ite, $website);
$doc_insert = "INSERT INTO meeting_docs
VALUES ('', '$file_name', '$title', '$desc', '$mtgid')";
$success = mysql_query($do c_insert);
//create variable to hold insert values

}else{
echo "File $i: Failed to
upload.<br>";
}#end of (move_uploaded_ file).

}#end of (file_exists).

}#end of (!is_uploaded_f ile).

}#end of (for loop).
# print back button.
echo "»<a href=\"$_SERVER[PHP_SELF]\">add more documents</a>";
Hi Chris

No I can't see what the problem is either.

I'm assuming its working like you expect apart until the part above
where the uploaded file's are moved then details recorded in the
meeting_docs table, is that right?

Will you try this debugging stuff.. Call mysql_error() after
mysql_query to see if the query syntax is at fault, print out
$doc_insert and try running the query by hand in phpmyadmin or mysql
cli, are you getting the expected number of "file $i: Uploaded br>"
messages?

I did wonder if the problem was inserting '' into the auto_increment
column, the mysql manual says only NULL or 0 will trigger an auto
increment - I've double checked the manual but I'm still not sure if ''
is treated the same as 0. It may not make a difference but would you
try INSERT ... VALUES(NULL, '$file_name'... ) just in case.

Btw, top posting can make it hard for most people using newsreader
clients to follow the thread - could you put your reply to messages
underneath the previous message. Ta.

Cheers
Tim

Aug 9 '06 #5
Thanks again Tim,

It's working fine now. Here are my responses to your suggestions:

"Call mysql_error() after mysql_query to see if the query syntax is at
fault, print out
$doc_insert and try running the query by hand in phpmyadmin or mysql cli,
are you getting the expected number of "file $i: Uploaded br>"
messages?"

Wow - do I feel stupid - I had deleted one of the columns in the table, and
had forgotten about it -- so the query just had too many values. Something
so simple gets overlooked after you've been staring at it for so many
hours - thanks for reminding me to check the query directly.

"I did wonder if the problem was inserting '' into the auto_increment
column, the mysql manual says only NULL or 0 will trigger an auto
increment - I've double checked the manual but I'm still not sure if '' is
treated the same as 0. It may not make a difference but would you
try INSERT ... VALUES(NULL, '$file_name'... ) just in case."

FYI - the '' seems to work as a NULL. I use it with all of my INSERT
queries The pk is auto-incremented in every case.

"Btw, top posting can make it hard for most people using newsreader clients
to follow the thread - could you put your reply to messages
underneath the previous message. Ta."

Sorry for toppost - a habit I developed from reading my personal messages -
I always know what I sent, so I want to see the response first.

I was also able to pass values for $mtgid and $num_files by rearranging the
elements (forms vs. form processing) then adding hidden fields into the
forms. However, I have noticed that the 'str_replace' that is supposed to
change any spaces in the file name to an underscore doesn't work. Any
suggestions for a method to make this work? Following is my final code for
anyone who is preparing a similar document:
<?php
//set variables for meeting input:
$date = $_POST['mtgdate'];
$team = $_POST['team'];
$project = $_POST['project'];
$subject = $_POST['subject'];

if (isset($_POST['numfiles'])){
$num_files = $_POST['numfiles'];
} else {
$num_files = 1;
}

//check that form has been submitted
if (isset($_POST['addmeeting'])) { //begin check for submission

//insert data into meetings table
mysql_select_db ($database_webs ite, $website);
$doc_insert = "INSERT INTO meetings VALUES ('', '$date', '$team',
'$subject', '$project')";

//Confirm if data inserted

$success = mysql_query($do c_insert); //create variable to hold insert
values
$mtgid = @mysql_insert_i d(); //create variable for last inserted id

//check if meeting input is successful
if ($success) {
echo "Your ". date('M d, Y', strtotime($date )) . " meeting has been added
to the database. <br />Your meeting number is " .$mtgid .",
<br />keep this number handy for future reference. <br />";
} else {
echo "There was an error adding your meeting to the database, please try
again.";
}//end check if meeting successful

if (isset($_POST['upload'])){ //check if file upload request ?>

Please use the form below to upload your meeting documents.<br /><br />
<h2>Select files to upload:</h2Files names should not have any spaces,
single quotes, or slashes. These will be replaced with an underscore (_)
character in the file name.<br />

<form method="post" action="<?php $_SERVER['PHP_SELF']?>"
enctype="multip art/form-data">
<input type="hidden" name="numfiles" value="<?php echo $num_files ?>" />

<?php // show the file input fields based on($num_files).

for ($i = 1; $i <= $num_files; $i++) { //begin the for loop?>

<strong>File <?php echo $i ?>:</strong<input type="file" name="file<?php
echo $i ?>"/&nbsp;
<strong>Documen t Title:</strong>(Require d - Max 50 characters):
<input type="text" size="30" maxlength="50" name="title<?ph p echo $i
?>"/><br />

<?php
} //end for loop ?>

<input type="hidden" name="mtgid" value="<?php echo $mtgid ?>" />
<input type="submit" name="upload_fo rm" value="Upload Now!" />
</form>
<?
} else { //else if no upload requested

echo "<a href='new.php'> Add another meeting.</a>";

} //end check for upload request

}//end check if meeting added

if (isset($_POST['upload_form'])){ //if the upload form has been submitted,
then do the upload process

//upload directory.
$upload_dir = "docs/";
$mtgid= $_POST['mtgid'];
$num_files = $_POST['numfiles'];

echo "<h3>Upload results:</h3>";

//do a loop for uploading files based on ($num_files) number of files.
for ($i = 1; $i <= $num_files; $i++) {

//define file variables to hold the values.
$new_file = $_FILES['file'.$i];
$file_name = $new_file['name'];

//to remove spaces and apostrophes from file name we have to replace it
with "_".
$file_name = str_replace(' ', '_', $file_name);
$file_name = str_replace("'" , "_", $file_name);

// strip file_name of slashes
$file_name = stripslashes($f ile_name);

$file_tmp = $new_file['tmp_name'];

//define other variables
$title = $_POST['title'.$i];

//check if file selected
if (!is_uploaded_f ile($file_tmp)) {

//print error message and file number.
echo "File $i: Not selected.<br>";

}else{

//check if file is Already EXISTS.

if(file_exists( $upload_dir.$fi le_name)){
echo "File $i: ($file_name) already exists.<br>";
}else{

// upload the files.

if (move_uploaded_ file($file_tmp, $upload_dir.$fi le_name)) {

//enter file data into database
mysql_select_db ($database_webs ite, $website);
$doc_insert = "INSERT INTO meeting_docs VALUES ('', '$file_name',
'$title', '$mtgid')";
$success = mysql_query($do c_insert); //create variable to hold insert
values

if ($success) { //confirm if values added to database
echo "File $i ($file_name) has been uploaded and added to the meeting
docs table.<br>";
echo "File $i: Title: $title<br>";
echo "File $i: Meeting ID: $mtgid<br><br>" ;
} else {
echo "There was an error adding your meeting document to the database,
please try again.";
}//end check if meeting successful

}else{
echo "File $i: ($file_name) failed to upload.<br>";
}//end of (move_uploaded_ file).

}//end of (file_exists).

}//end of (!is_uploaded_f ile).

}//end of (for loop).

} //end upload process

?>
Chris
Aug 9 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
2521
by: Preston Crawford | last post by:
I'm working on a site where one of the requirements is the ability to do a newsletter. This newsletter would either be composed with or pasted into some kind of WYSIWYG web-based editor OR they'd upload a word doc and I'd process it. I've done similar things with ASP in the past, but not with PHP. Could anyone tell me which of the above ways is going to be more perilous before I embark? I get a feeling the word doc one will be, but that's...
5
7846
by: Kevin Ollivier | last post by:
Hi all, I've come across a problem that has me stumped, and I thought I'd send a message to the gurus to see if this makes sense to anyone else. =) Basically, I'm trying to upload a series of files via FTP. I'm using ftplib to do it, and for each file I'm using transfercmd("STOR " + myfile) to get the socket, then uploading 4096 bytes at a time and providing status updates via a GUI interface. Finally, I close the socket, set it to...
5
5483
by: Ron Brennan | last post by:
Good afternoon. The entire task that I'm trying to achieve is to allow a user to browse and upload multiple files simultaneously, hiding the Browse button of <input> tags of type="file" and replacing it with a button of my own background color and text. The file paths I'd like displayed in a textarea and then the files uploaded at once.
13
4335
by: Sky Sigal | last post by:
I have created an IHttpHandler that waits for uploads as attachments for a webmail interface, and saves it to a directory that is defined in config.xml. My question is the following: assuming that this is suppossed to end up as a component for others to use, and therefore I do NOT have access to their global.cs::Session_End() how do I cleanup files that were uploaded -- but obviously left stranded when the users aborted/gave up writting...
5
3118
by: Grant Harmeyer | last post by:
I have an application that uses FreeTextBox 2.0 (http://www.freetextbox.com). FreeTextBox is a rich text editor that behaves similarly to MS Word. The FreeTextBox control has a button to insert images (just as you would with MS Word) and it works beautifully. The problem is that when you include an image with the rich text editor, the image path is the local path on the client. I have written a method that examines the text for <img> tags,...
5
1064
by: Manny Chohan | last post by:
Hi Guys, I am having problem with uploading documents using .net. If the size of doc is large, 4 mbs or more, it will give me an error Server not available etc. While small docs are fine. What can i do to resolve this issue? Thanks
3
2371
by: Carlos | last post by:
Hello Forum, I would appreciate it if you could recommend settings to use auto-vacuum in my version 7.4 database. I am uploading several thousands records in the database at a rate of ~1 second per record (the data is uploading from a different server). I have noticed that the performance of the uploading is improved if I vacuum the database every so often so I decided to take advantage of auto-vacuuming to maintain the best...
1
2088
by: wenqiang7 | last post by:
I am encountering a very strang problem with file uploading in my ASP.Net page. When we try to upload certain file, we'll get an error msg of "Cannot find server or DNS Error". We are running on Win2003, IIS, ASP.Net 1.1. The page works fine if running from localhost. It only has problem when accessed from a domain name.
4
1676
by: | last post by:
Can someone offer or point me to some sample code or advice on how to upload a document from a web page and store it into a SQL Server image field? And then reverse the process and serve up the file from the database when requested through a web page... Thanks. Jerry
0
9798
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11160
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10766
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10422
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9588
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7136
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4622
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4230
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3241
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.