עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעית גישה בהעתקת קובץ לשרת

Featured Replies

פורסם

שלום,

אני בונה אתר ב - ASP.NET ויש לי בעית גישת בהעלאת קובץ לשרת. ברגע שהלקוח מנסה לעלות את הקובץ לשרת אז התוכנית

נופלת בגלל בעית גישה. מצורפת תמונה לחריגה. צרפתי גם את הקוד. עזרתם תודה.



protected void B_upload_Click(object sender, EventArgs e)

{

if (myFile.PostedFile != null)

{

// File was sent

// Get a reference to PostedFile object

HttpPostedFile upFile = myFile.PostedFile;

// Get size of uploaded file

int nFileLen = upFile.ContentLength;

// Allocate a buffer for reading of the file

byte[] myData = new byte[nFileLen];

// Read uploaded file from the Stream

upFile.InputStream.Read(myData, 0, nFileLen);

WriteToFile("C:/", ref myData);

}

else

{

// No file

}

}

protected void WriteToFile(string strPath, ref byte[] Buffer)

{

// Create a file

FileStream newFile = new FileStream(strPath, FileMode.Create);

// Write data to the file

newFile.Write(Buffer, 0, Buffer.Length);

// Close file

newFile.Close();

}

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.